Skip to content

Commit

Permalink
skip addresses that don't match (#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
scareything committed Oct 14, 2022
1 parent b6eec50 commit b46052b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ziti-tunnel/intercept.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const ziti_address *address_match(const ziti_address *addr, const address_list_t
STAILQ_FOREACH(a, addresses, entries) {
score = ziti_address_match(addr, &a->za);
TNL_LOG(VERBOSE, "ziti_address_match score %d", score);
if (score < 0) continue;
if (best_score == -1 || score < best_score) {
best_score = score;
best_addr = &a->za;
Expand Down

0 comments on commit b46052b

Please sign in to comment.