File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1132,7 +1132,7 @@ $VESTA/bin/v-update-sys-ip
11321132ip=$( ip addr| grep ' inet ' | grep global| head -n1| awk ' {print $2}' | cut -f1 -d/)
11331133
11341134# Get public ip
1135- pub_ip=$( wget vestacp.com/what-is-my-ip/ -O - 2> /dev/null )
1135+ pub_ip=$( curl vestacp.com/what-is-my-ip/)
11361136if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
11371137 $VESTA /bin/v-change-sys-ip-nat $ip $pub_ip
11381138fi
Original file line number Diff line number Diff line change @@ -1202,7 +1202,7 @@ $VESTA/bin/v-update-sys-ip
12021202ip=$( ip addr| grep ' inet ' | grep global| head -n1| awk ' {print $2}' | cut -f1 -d/)
12031203
12041204# Get public ip
1205- pub_ip=$( wget vestacp.com/what-is-my-ip/ -O - 2> /dev/null )
1205+ pub_ip=$( curl vestacp.com/what-is-my-ip/)
12061206if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
12071207 $VESTA /bin/v-change-sys-ip-nat $ip $pub_ip
12081208fi
Original file line number Diff line number Diff line change @@ -1121,7 +1121,7 @@ $VESTA/bin/v-update-sys-ip
11211121ip=$( ip addr| grep ' inet ' | grep global| head -n1| awk ' {print $2}' | cut -f1 -d/)
11221122
11231123# Get public ip
1124- pub_ip=$( wget vestacp.com/what-is-my-ip/ -O - 2> /dev/null )
1124+ pub_ip=$( curl vestacp.com/what-is-my-ip/)
11251125if [ ! -z " $pub_ip " ] && [ " $pub_ip " != " $ip " ]; then
11261126 $VESTA /bin/v-change-sys-ip-nat $ip $pub_ip
11271127fi
You can’t perform that action at this time.
0 commit comments