Update networktool.php

This commit is contained in:
Namhyeon Go 2019-02-26 15:05:35 +09:00 committed by GitHub
parent 8c60df4494
commit 2ed40e017d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ if(!check_function_exists("get_network_server_addr")) {
$addr = $_SERVER['SERVER_ADDR'];
} else if(isset($_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();
$addr = gethostbyname($host);
} else {