Browse Source

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

pull/1189/head
billz 6 months ago
parent
commit
7f593bfe31
  1. 2
      includes/functions.php

2
includes/functions.php

@ -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…
Cancel
Save