File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Zolian.Server.Base/Network/Server Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ public static bool ClientOnBlackList(string remoteIp)
63
63
var abuseConfidenceScore = ipdb ? . Data ? . AbuseConfidenceScore ;
64
64
var tor = ipdb ? . Data ? . IsTor ;
65
65
var usageType = ipdb ? . Data ? . UsageType ;
66
+ var isp = ipdb ? . Data ? . Isp ;
66
67
67
68
// Block if using tor, potentially malicious
68
69
if ( tor == true )
@@ -72,7 +73,7 @@ public static bool ClientOnBlackList(string remoteIp)
72
73
}
73
74
74
75
// Block if an unauthorized usage type
75
- if ( IsBlockedUsageType ( usageType ) )
76
+ if ( IsBlockedUsageType ( usageType ) && IsBlockedIsp ( isp ) )
76
77
{
77
78
LogBlockedType ( remoteIp , $ "using { usageType } ") ;
78
79
return true ;
@@ -149,6 +150,15 @@ private static bool IsBlockedUsageType(string usageType)
149
150
} ;
150
151
}
151
152
153
+ private static bool IsBlockedIsp ( string isp )
154
+ {
155
+ return isp switch
156
+ {
157
+ "Erisco LLC" => false ,
158
+ _ => true
159
+ } ;
160
+ }
161
+
152
162
public static void ReportMaliciousEndpoint ( string remoteIp , string comment )
153
163
{
154
164
var keyCode = ServerSetup . Instance . KeyCode ;
You can’t perform that action at this time.
0 commit comments