Fix another bug

This commit is contained in:
Quentin Dufour 2019-03-27 11:21:18 +01:00
parent 627523e1c7
commit bb60aeaef3

View file

@ -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);