From 6df27182461de057ad3b97b77e57988162c0d3ae Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Fri, 12 Aug 2022 20:14:03 +0800 Subject: [PATCH] fix: filter localhost --- src/Basis.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Basis.php b/src/Basis.php index f105abc..f8fa046 100644 --- a/src/Basis.php +++ b/src/Basis.php @@ -60,6 +60,7 @@ function getHost(): string { return 'KMS_HOST'; } $host = v6DelBracket($match[1][0]); // try to remove ipv6 bracket again + $host = ($host == '127.0.0.1' or $host == '::1') ? 'KMS_HOST' : $host; // ignore localhost forward return (isHost($host)) ? $host : 'KMS_HOST'; }