Fixes implicit ternary expressions
This commit is contained in:
parent
c85b0a740c
commit
ff26dfa375
345 changed files with 1905 additions and 2336 deletions
|
|
@ -157,16 +157,15 @@ namespace Server.Misc
|
|||
|
||||
if ( Utility.IPMatch( "192.168.*", ip ) )
|
||||
return true;
|
||||
else if ( Utility.IPMatch( "10.*", ip ) )
|
||||
if ( Utility.IPMatch( "10.*", ip ) )
|
||||
return true;
|
||||
else if ( Utility.IPMatch( "172.16-31.*", ip ) )
|
||||
if ( Utility.IPMatch( "172.16-31.*", ip ) )
|
||||
return true;
|
||||
else if ( Utility.IPMatch( "169.254.*", ip ) )
|
||||
if ( Utility.IPMatch( "169.254.*", ip ) )
|
||||
return true;
|
||||
else if ( Utility.IPMatch( "100.64-127.*", ip ) )
|
||||
if ( Utility.IPMatch( "100.64-127.*", ip ) )
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
|
||||
private static IPAddress FindPublicAddress()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue