Fixed issue where a missing sssg_clearance cookie would fool the bot into thinking it needed to solve a KiwiFlare challenge regardless of whether it's enabled

This commit is contained in:
barelyprofessional
2025-07-24 12:39:19 -05:00
parent 5d853d5b72
commit f92cba5b49

View File

@@ -47,6 +47,11 @@ public class KfTokenService
{
var clearanceCookie = _cookies.GetAllCookies()["sssg_clearance"];
_logger.Debug($"Got clearance cookie with value: {clearanceCookie}");
if (await _kiwiFlare.CheckAuth("nigger"))
{
_logger.Debug("KiwiFlare has been turned off as it's accepting a nigger sssg_clearance");
return;
};
if (clearanceCookie != null)
{
if (await _kiwiFlare.CheckAuth(clearanceCookie.Value)) return;