improved ipurl check

This commit is contained in:
Daniel Steglich committed 2015-03-06 21:41:57 +01:00
1 parent 6acc4cc44f
commit 7d30480117
1 file changed
+1 -1
+1 -1
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