mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-27 19:23:40 +00:00
Fix #2051
This commit is contained in:
+1
-1
@@ -971,7 +971,7 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
|
||||
memset(query, 0, sizeof(query_t));
|
||||
query->server = server;
|
||||
server->query = query;
|
||||
snprintf(query->hostname, 256, "%s", host);
|
||||
snprintf(query->hostname, 257, "%s", host);
|
||||
|
||||
server->stage = STAGE_RESOLVE;
|
||||
resolv_start(host, port, resolv_cb, resolv_free_cb, query);
|
||||
|
||||
Reference in New Issue
Block a user