(98ad00fa2) v0.9.1.0
This commit is contained in:
@@ -35,7 +35,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
public bool CompareTo(string ipCompare)
|
||||
{
|
||||
if (string.IsNullOrEmpty(IP)) { return false; }
|
||||
if (string.IsNullOrEmpty(IP) || string.IsNullOrEmpty(IP)) { return false; }
|
||||
if (!IsRangeBan)
|
||||
{
|
||||
return ipCompare == IP;
|
||||
@@ -50,7 +50,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
public bool CompareTo(IPAddress ipCompare)
|
||||
{
|
||||
if (string.IsNullOrEmpty(IP)) { return false; }
|
||||
if (string.IsNullOrEmpty(IP) || ipCompare == null) { return false; }
|
||||
if (ipCompare.IsIPv4MappedToIPv6 && CompareTo(ipCompare.MapToIPv4().ToString()))
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user