|
@ -60,8 +60,7 @@ function getHost(): string { |
|
|
return 'KMS_HOST'; |
|
|
return 'KMS_HOST'; |
|
|
} |
|
|
} |
|
|
$host = v6DelBracket($match[1][0]); // try to remove ipv6 bracket again |
|
|
$host = v6DelBracket($match[1][0]); // try to remove ipv6 bracket again |
|
|
// TODO: recover $host param |
|
|
$host = ($host == '127.0.0.1' or $host == '::1') ? 'KMS_HOST' : $host; // ignore localhost forward |
|
|
// $host = ($host == '127.0.0.1' or $host == '::1') ? 'KMS_HOST' : $host; // ignore localhost forward |
|
|
|
|
|
return (isHost($host)) ? $host : 'KMS_HOST'; |
|
|
return (isHost($host)) ? $host : 'KMS_HOST'; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|