fix: fix http mark handle

fix: #91
This commit is contained in:
Zxilly 2023-09-06 22:18:05 +08:00
parent 7af92f5dcf
commit 3baaedc5bc
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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};
}