From 776d16ed49fd2c1577428ccff5cd7bf1d45c958a Mon Sep 17 00:00:00 2001 From: UnfamiliarLegacy <74633542+UnfamiliarLegacy@users.noreply.github.com> Date: Tue, 28 May 2024 19:31:15 +0200 Subject: [PATCH] Extra cloudflare cookies --- .../connection/proxy/nitro/http/NitroHttpProxyFilter.java | 7 ++++++- .../connection/proxy/nitro/os/windows/NitroWindows.java | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxyFilter.java b/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxyFilter.java index e6e1152..5d9978d 100644 --- a/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxyFilter.java +++ b/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/http/NitroHttpProxyFilter.java @@ -24,11 +24,16 @@ public class NitroHttpProxyFilter extends HttpFiltersAdapter { private static final HashSet CloudflareCookies = new HashSet<>(Arrays.asList( "__cflb", "__cf_bm", + "__cfseq", "cf_ob_info", "cf_use_ob", "__cfwaitingroom", "__cfruid", - "cf_clearance" + "_cfuvid", + "cf_clearance", + "cf_chl_rc_i", + "cf_chl_rc_ni", + "cf_chl_rc_m" )); private static final String HeaderAcceptEncoding = "Accept-Encoding"; diff --git a/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/os/windows/NitroWindows.java b/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/os/windows/NitroWindows.java index ec55105..fb7d370 100644 --- a/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/os/windows/NitroWindows.java +++ b/G-Earth/src/main/java/gearth/protocol/connection/proxy/nitro/os/windows/NitroWindows.java @@ -15,7 +15,8 @@ public class NitroWindows implements NitroOsFunctions { /** * Semicolon separated hosts to ignore for proxying. */ - private static final String PROXY_IGNORE = "discord.com;discordapp.com;github.com;"; + // habba.io; + private static final String PROXY_IGNORE = "discord.com;discordapp.com;github.com;challenges.cloudflare.com;"; /** * Checks if the certificate is trusted by the local machine.