Update networktool.php
This commit is contained in:
parent
2771b7745a
commit
62ade3f26c
|
@ -109,7 +109,7 @@ if(!function_exists("get_network_outbound_addr")) {
|
||||||
|
|
||||||
if(loadHelper("webpagetool")) {
|
if(loadHelper("webpagetool")) {
|
||||||
$remote_host = "http://" . ($protocol == "ipv6" ? "ipv6." : "") . "icanhazip.com";
|
$remote_host = "http://" . ($protocol == "ipv6" ? "ipv6." : "") . "icanhazip.com";
|
||||||
$response = get_web_json($remote_host, "get.cache");
|
$response = get_web_page($remote_host, "get.cache");
|
||||||
$addr = get_value_in_array("content", $response, $addr);
|
$addr = get_value_in_array("content", $response, $addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user