Compare commits

..

3 Commits

Author SHA1 Message Date
bol-van
74b6281770 nfqws,tpws: minor comment update 2024-11-02 19:15:23 +03:00
bol-van
a581e13498 nfqws,tpws: minor comment update 2024-11-02 19:14:20 +03:00
bol-van
174772e87f nfqws,tpws: minor comment update 2024-11-02 18:35:32 +03:00
2 changed files with 4 additions and 4 deletions

View File

@ -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 // if hostlists are present profile matches only if hostname is known and satisfy profile hostlists
if (hostname) if (hostname)
{ {
if (bCheckDone) *bCheckDone = true; if (bCheckDone) *bCheckDone = true;

View File

@ -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 // if hostlists are present profile matches only if hostname is known and satisfy profile hostlists
return HostlistCheck(dp, hostname, NULL, true); return HostlistCheck(dp, hostname, NULL, true);
return false; return false;