improved ipurl check

This commit is contained in:
Daniel Steglich 2015-03-06 21:41:57 +01:00
parent 6acc4cc44f
commit 7d30480117

View File

@ -256,7 +256,7 @@ doGetWANIP()
if [ ! -z ${ipurl} ];then
outfile=$(mktemp)
${WGET} ${WGETOPTIONS} -O ${outfile} ${ipurl}
wanip=$(cat ${outfile})
wanip=$(cat ${outfile}|sed s/[^0-9.]//g)
rm ${outfile}
[ -z ${wanip} ] && wanip=${NOIP}
else