From f0e016f13bb865c1e4c088618dbeeba327d2c319 Mon Sep 17 00:00:00 2001 From: LittleChest Date: Fri, 25 Jul 2025 20:58:47 +0800 Subject: [PATCH] common: Update Anti-GFW * Adapt to new changes in GFW --- common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.js b/common.js index 469e18f..393d956 100644 --- a/common.js +++ b/common.js @@ -13,8 +13,9 @@ export default async function handler( pathname === "/dns-query" && headers.get("content-type") === "application/dns-message" && headers.get("accept") === "application/dns-message" && - headers.get("accept-encoding") === "gzip, br" && headers.get("content-length") === "29" && + (headers.get("accept-encoding") === "gzip, br" || + headers.get("accept-encoding") === "gzip") && (headers.get("user-agent") === "Go-http-client/1.1" || headers.get("user-agent") === "Go-http-client/2.0") ) {