mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-26 10:43:43 +00:00
limit the timeout of udprelay
This commit is contained in:
+1
-1
@@ -914,7 +914,7 @@ int init_udprelay(const char *server_host, const char *server_port,
|
||||
setnonblocking(serverfd);
|
||||
|
||||
server_ctx = new_server_ctx(serverfd);
|
||||
server_ctx->timeout = timeout;
|
||||
server_ctx->timeout = min(timeout, 5);
|
||||
server_ctx->method = method;
|
||||
server_ctx->iface = iface;
|
||||
server_ctx->conn_cache = conn_cache;
|
||||
|
||||
Reference in New Issue
Block a user