mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Add timeout to wget to extract public IP, thx @zbchristian
This commit is contained in:
parent
9187691b3e
commit
7f593bfe31
@ -787,7 +787,7 @@ class validation
|
||||
*/
|
||||
function get_public_ip()
|
||||
{
|
||||
exec('wget https://ipinfo.io/ip -qO -', $public_ip);
|
||||
exec('wget --timeout=5 --tries=1 https://ipinfo.io/ip -qO -', $public_ip);
|
||||
return $public_ip[0];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user