From d96bbeafa12420b6aec4a69d4efc3c633e12f176 Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 22 Oct 2022 14:50:23 +0800 Subject: [PATCH] remove: localhost test code --- src/Basis.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Basis.php b/src/Basis.php index dfc4721..85cfa25 100644 --- a/src/Basis.php +++ b/src/Basis.php @@ -60,8 +60,7 @@ function getHost(): string { return 'KMS_HOST'; } $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'; }