Skip to content
Snippets Groups Projects
Commit 08933fa8 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Detect local addresses a bit better

parent 8b4be911
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -82,7 +82,9 @@ function Unregistered_Client(id,socket) { ...@@ -82,7 +82,9 @@ function Unregistered_Client(id,socket) {
|| (this.ip.slice(0,7) == "100.64.") || (this.ip.slice(0,7) == "100.64.")
|| (this.ip.slice(0,7) == "172.16." ) || (this.ip.slice(0,7) == "172.16." )
|| (this.ip.slice(0,2) == "::") || (this.ip.slice(0,2) == "::")
|| (this.ip.slice(0,6).toUpperCase() == "FE80::") || (this.ip.slice(0,2).toUpperCase() == "FC")
|| (this.ip.slice(0,2).toUpperCase() == "FD")
|| (this.ip.slice(0,2).toUpperCase() == "FE")
) { ) {
this.hostname = ServerName; this.hostname = ServerName;
this.dns_pending = false; this.dns_pending = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment