You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!string.IsNullOrEmpty(UserAgent)&&(UserAgent.Contains("firefox")||UserAgent.Contains("chrome")||UserAgent.Contains("trident")||UserAgent.Contains("bytespider")))// Get Away TikTok.
87
91
{
88
92
LoggerAccessor.LogInfo($"[OTG_HTTPS] - Client - {clientip}:{clientport} Requested the OTG_HTTPS Server while not being allowed!");
89
93
90
94
ctx.Response.StatusCode=(int)statusCode;// Send the other status.
LoggerAccessor.LogError($"[SECURITY] - Client - {clientip} Requested the SVO server while being banned!");
167
167
else
168
168
{
169
-
string?UserAgent=ctx.Request.UserAgent.ToLower();
169
+
string?UserAgent=null;
170
+
171
+
if(!string.IsNullOrEmpty(ctx.Request.UserAgent))
172
+
UserAgent=ctx.Request.UserAgent.ToLower();
173
+
170
174
if(!string.IsNullOrEmpty(UserAgent)&&(UserAgent.Contains("firefox")||UserAgent.Contains("chrome")||UserAgent.Contains("trident")||UserAgent.Contains("bytespider")))// Get Away TikTok.
0 commit comments