Fix another bug
This commit is contained in:
parent
627523e1c7
commit
bb60aeaef3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue