This commit is contained in:
Mark Sturgill 2014-04-14 02:55:16 -07:00
parent 3bc81ea952
commit 568bd43733

View file

@ -151,6 +151,7 @@ namespace Server.Misc
// 172.16.0.0/12
// 192.168.0.0/16
// 169.254.0.0/16
// 100.64.0.0/10 RFC 6598
if ( ip.AddressFamily == AddressFamily.InterNetworkV6 )
return false;
@ -163,6 +164,8 @@ namespace Server.Misc
return true;
else if ( Utility.IPMatch( "169.254.*", ip ) )
return true;
else if ( Utility.IPMatch( "100.64-127.*", ip ) )
return true;
else
return false;
}