From 1b6191580d9d4716dc99e8cece1f5537d8fb1033 Mon Sep 17 00:00:00 2001 From: LittleChest Date: Thu, 12 Feb 2026 17:39:19 +0800 Subject: [PATCH] common: Update Anti-GFW & faster --- common.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/common.js b/common.js index 644a62b..50cca92 100644 --- a/common.js +++ b/common.js @@ -122,19 +122,16 @@ export default async function handler( } // POST - if ( - method === "POST" && - headers.get("content-type") === "application/dns-message" - ) { + if (method === "POST") { const requestBody = await request.arrayBuffer(); // Anti-GFW if ( - isIPv4(ip) && - headers.get("accept") === "application/dns-message" && headers.get("content-length") === "29" && (headers.get("user-agent") === "Go-http-client/1.1" || headers.get("user-agent") === "Go-http-client/2.0") && + headers.get("accept") === "application/dns-message" && + headers.get("content-type") === "application/dns-message" && (headers.get("accept-encoding") === "gzip, br" || headers.get("accept-encoding") === "gzip") ) {