summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy.c b/proxy.c
index d06803d..125c408 100644
--- a/proxy.c
+++ b/proxy.c
@@ -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);