Skip to content

Commit

Permalink
fix wildcard matches (#579)
Browse files Browse the repository at this point in the history
interpret `ziti_address_match_s` result as score, not bool.
  • Loading branch information
scareything committed Jan 6, 2023
1 parent ec13081 commit e515dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ziti-tunnel-cbs/ziti_tunnel_cbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ static const ziti_address *intercept_match_addr(ip_addr_t *addr, void *ctx) {
const ziti_address *zaddr;
MODEL_LIST_FOREACH(zaddr, cfg->addresses) {
if (zaddr->type != ziti_address_hostname) continue;
if (ziti_address_match_s(domain, zaddr)) {
if (ziti_address_match_s(domain, zaddr) >= 0) {
return zaddr;
}
}
Expand Down

0 comments on commit e515dd1

Please sign in to comment.