Browse Source

fix: filter localhost

master
dnomd343 2 years ago
parent
commit
6df2718246
  1. 1
      src/Basis.php

1
src/Basis.php

@ -60,6 +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
$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';
} }

Loading…
Cancel
Save