From bb60aeaef3236be8b7d0d04fa8b5c8f2f67a9d70 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 27 Mar 2019 11:21:18 +0100 Subject: [PATCH] Fix another bug --- src/donar_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/donar_client.c b/src/donar_client.c index 3fd089c..32bf02e 100644 --- a/src/donar_client.c +++ b/src/donar_client.c @@ -47,7 +47,7 @@ failed: int on_socks5_failed(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) { struct donar_client_ctx* app_ctx = fdinfo->cat->app_ctx; struct socks5_ctx* s5ctx = fdinfo->other; - int pos = 7500 - s5ctx->port; + int pos = s5ctx->port - 7500; evt_core_rm_fd (ctx, fdinfo->fd); init_socks5_client (app_ctx, pos);