From 3baaedc5bceb27ad4e86a181b99a6308352cd8cb Mon Sep 17 00:00:00 2001 From: Zxilly Date: Wed, 6 Sep 2023 22:18:05 +0800 Subject: [PATCH] fix: fix http mark handle fix: #91 --- openwrt/Makefile | 2 +- src/handler.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openwrt/Makefile b/openwrt/Makefile index f653ae9..61999ff 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=UA2F -PKG_VERSION:=4.3.0 +PKG_VERSION:=4.3.1 PKG_RELEASE:=1 PKG_LICENSE:=GPL-3.0-only diff --git a/src/handler.c b/src/handler.c index aaab5a0..ffd46c3 100644 --- a/src/handler.c +++ b/src/handler.c @@ -127,6 +127,10 @@ static struct mark_op get_next_mark(struct nf_packet *pkt, bool has_ua) { return (struct mark_op) {false, 0}; } + if (pkt->conn_mark == CONNMARK_HTTP) { + return (struct mark_op) {false, 0}; + } + if (has_ua) { return (struct mark_op) {true, CONNMARK_HTTP}; }