|
@ -204,7 +204,7 @@ function checkWANIP { |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [[ $(cat "${WANIP_LOG}" | wc -l) -gt 1 ]] ; then |
|
|
if [[ $(cat "${WANIP_LOG}" | wc -l) -gt 1 ]] ; then |
|
|
local WANIP_OLD=$(tail -1 "${WANIP_LOG}" | awk '{print $2}') |
|
|
|
|
|
|
|
|
local WANIP_OLD=$(tail -1 "${WANIP_LOG}" | grep -oE '([0-9]{2,3}\.){3}([0-9]{2,3})') |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [[ ${WANIP_OLD} == "" ]]; then |
|
|
if [[ ${WANIP_OLD} == "" ]]; then |
|
|