diff --git a/library/bind.c b/library/bind.c index 1973cd2e..d8996160 100644 --- a/library/bind.c +++ b/library/bind.c @@ -110,6 +110,7 @@ static void process_bindings(struct ziti_conn *conn) { struct ziti_ctx *ztx = conn->ziti_ctx; size_t target = MIN(conn->server.max_bindings, model_map_size(&ztx->channels)); + const char *url; for(int idx = 0; conn->server.routers && conn->server.routers[idx]; idx++) { ziti_edge_router *er = conn->server.routers[idx]; @@ -140,7 +141,7 @@ static void process_bindings(struct ziti_conn *conn) { } if (target <= 0) break; } - ZITI_LOG(DEBUG, "target is %ld", target); + schedule_rebind(conn, target > 0); } @@ -248,6 +249,7 @@ static void list_routers_cb(ziti_service_routers *srv_routers, const ziti_error } } free(srv_routers); + process_bindings(conn); }