From 5df635efdbd439fdc0cd5921e11b03d43d3e6554 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 16 Sep 2026 16:20:51 +0300 Subject: [PATCH] nfqws2: HttpReplyLooksLikeDPIRedirect accept # and ? chars as domain end --- nfq2/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq2/protocol.c b/nfq2/protocol.c index eabe5e9..e30dd29 100644 --- a/nfq2/protocol.c +++ b/nfq2/protocol.c @@ -385,7 +385,7 @@ bool HttpReplyLooksLikeDPIRedirect(const uint8_t *data, size_t len, const char * // somethinkg like : censor.net/badpage.php?reason=denied&source=RKN - for(p=redirect_host; *p && *p!='/' ; p++); + for(p=redirect_host; *p && *p!='/' && *p!='?' && *p!='#' ; p++); *p=0; if (!*redirect_host) return false;