Add timeout to wget to extract public IP, thx @zbchristian

This commit is contained in:
billz 2022-06-22 14:04:53 +01:00
parent 9187691b3e
commit 7f593bfe31
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}