diff options
Diffstat (limited to 'proxy.c')
-rw-r--r-- | proxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -183,11 +183,11 @@ proxy_server_data_in(struct cfg *cfg, struct uring_task *task, int res) } static void -proxy_connected_cb(struct cfg *cfg, struct connection *conn, int res) +proxy_connected_cb(struct cfg *cfg, struct connection *conn, bool connected) { struct server_proxy *proxy = container_of(conn, struct server_proxy, server_conn); - if (res < 0) { + if (!connected) { fprintf(stderr, "%s: proxy connection to remote server failed\n", proxy->scfg->name); proxy_delete(cfg, proxy); |