mirror of
https://github.com/hufrea/byedpi.git
synced 2024-12-18 03:42:06 +03:00
Ignore events until the remote connection is established
This commit is contained in:
parent
a6ee6ddb92
commit
4012b14bda
2 changed files with 2 additions and 1 deletions
1
extend.c
1
extend.c
|
@ -409,6 +409,7 @@ int on_first_tunnel(struct poolhd *pool,
|
||||||
uniperror("mod_etype");
|
uniperror("mod_etype");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
val->pair->type = EV_FIRST_TUNNEL;
|
||||||
return send_saved_req(pool, val->pair, buffer, bfsize);
|
return send_saved_req(pool, val->pair, buffer, bfsize);
|
||||||
}
|
}
|
||||||
ssize_t n = tcp_recv_hook(pool, val, buffer, bfsize);
|
ssize_t n = tcp_recv_hook(pool, val, buffer, bfsize);
|
||||||
|
|
2
proxy.c
2
proxy.c
|
@ -439,7 +439,7 @@ int create_conn(struct poolhd *pool,
|
||||||
pair->in6 = dst->in6;
|
pair->in6 = dst->in6;
|
||||||
#endif
|
#endif
|
||||||
pair->flag = FLAG_CONN;
|
pair->flag = FLAG_CONN;
|
||||||
//val->type = EV_IGNORE;
|
val->type = EV_IGNORE;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue