apipa range for serverlist autodetection
This commit is contained in:
parent
18bc7b84d9
commit
bab199139b
1 changed files with 3 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ namespace Server.Misc
|
|||
// 10.0.0.0/8
|
||||
// 172.16.0.0/12
|
||||
// 192.168.0.0/16
|
||||
// 169.254.0.0/16
|
||||
|
||||
if ( ip.AddressFamily == AddressFamily.InterNetworkV6 )
|
||||
return false;
|
||||
|
|
@ -160,6 +161,8 @@ namespace Server.Misc
|
|||
return true;
|
||||
else if ( Utility.IPMatch( "172.16-31.*", ip ) )
|
||||
return true;
|
||||
else if ( Utility.IPMatch( "169.254.*", ip ) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue