Browse Source

nfqws,tpws: minor comment update

pull/696/head
bol-van 5 months ago
parent
commit
174772e87f
  1. 4
      nfq/desync.c
  2. 4
      tpws/tamper.c

4
nfq/desync.c

@ -171,7 +171,7 @@ static bool dp_match(
// target ip does not match // target ip does not match
return false; 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 (dp->hostlist_auto) return true;
if (PROFILE_HOSTLISTS_EMPTY(dp)) if (PROFILE_HOSTLISTS_EMPTY(dp))
@ -179,7 +179,7 @@ static bool dp_match(
return true; return true;
else 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 (hostname)
{ {
if (bCheckDone) *bCheckDone = true; if (bCheckDone) *bCheckDone = true;

4
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 // target ip does not match
return false; 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 (dp->hostlist_auto) return true;
if (PROFILE_HOSTLISTS_EMPTY(dp)) if (PROFILE_HOSTLISTS_EMPTY(dp))
// profile without hostlist filter wins // profile without hostlist filter wins
return true; return true;
else if (hostname) 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 HostlistCheck(dp, hostname, NULL, true);
return false; return false;

Loading…
Cancel
Save