mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
improved ipurl check
This commit is contained in:
parent
6acc4cc44f
commit
7d30480117
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user