mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Add timeout to wget to extract public IP, thx @zbchristian
This commit is contained in:
parent
9187691b3e
commit
7f593bfe31
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue