Browse Source

Match an actual IPv4 address

master
Pekka Helenius 3 years ago
parent
commit
bdfca2dca2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ssmtp_conf-sample/wanchecker.sh

+ 1
- 1
ssmtp_conf-sample/wanchecker.sh View File

@ -204,7 +204,7 @@ function checkWANIP {
fi
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
if [[ ${WANIP_OLD} == "" ]]; then


Loading…
Cancel
Save