From 174772e87f7bde40e2e242c6bc04b55fc809dbf9 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sat, 2 Nov 2024 18:35:32 +0300 Subject: [PATCH] nfqws,tpws: minor comment update --- nfq/desync.c | 4 ++-- tpws/tamper.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nfq/desync.c b/nfq/desync.c index 2a31c32..543787c 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -171,7 +171,7 @@ static bool dp_match( // target ip does not match return false; - // autohostlist profile matching l3/l4 filter always win + // autohostlist profile matching l3/l4/l7 filter always win if (dp->hostlist_auto) return true; if (PROFILE_HOSTLISTS_EMPTY(dp)) @@ -179,7 +179,7 @@ static bool dp_match( return true; else { - // without known hostname first profile matching l3/l4 filter and without hostlist filter wins + // without known hostname first profile matching l3/l4/l7 filter and without hostlist filter wins if (hostname) { if (bCheckDone) *bCheckDone = true; diff --git a/tpws/tamper.c b/tpws/tamper.c index 0c3e35e..92f3f98 100644 --- a/tpws/tamper.c +++ b/tpws/tamper.c @@ -44,14 +44,14 @@ static bool dp_match(struct desync_profile *dp, const struct sockaddr *dest, con // target ip does not match return false; - // autohostlist profile matching l3/l4 filter always win + // autohostlist profile matching l3/l4/l7 filter always win if (dp->hostlist_auto) return true; if (PROFILE_HOSTLISTS_EMPTY(dp)) // profile without hostlist filter wins return true; else if (hostname) - // without known hostname first profile matching l3/l4 filter and without hostlist filter wins + // without known hostname first profile matching l3/l4/l7 filter and without hostlist filter wins return HostlistCheck(dp, hostname, NULL, true); return false;