Update networktool.php
This commit is contained in:
parent
8c60df4494
commit
2ed40e017d
|
@ -56,7 +56,7 @@ if(!check_function_exists("get_network_server_addr")) {
|
||||||
$addr = $_SERVER['SERVER_ADDR'];
|
$addr = $_SERVER['SERVER_ADDR'];
|
||||||
} else if(isset($_SERVER['LOCAL_ADDR'])) {
|
} else if(isset($_SERVER['LOCAL_ADDR'])) {
|
||||||
$addr = $_SERVER['LOCAL_ADDR'];
|
$addr = $_SERVER['LOCAL_ADDR'];
|
||||||
} else if(!check_function_exists('gethostname') && !check_function_exists('gethostbyname')) {
|
} else if(check_function_exists(array("gethostname", "gethostbyname"))) {
|
||||||
$host = gethostname();
|
$host = gethostname();
|
||||||
$addr = gethostbyname($host);
|
$addr = gethostbyname($host);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user