mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-30 04:55:16 +00:00
Fix the missing addr reset
This commit is contained in:
@@ -348,6 +348,8 @@ delayed_connect_cb(EV_P_ ev_timer *watcher, int revents)
|
||||
int r = connect(remote->fd, remote->addr,
|
||||
get_sockaddr_len(remote->addr));
|
||||
|
||||
remote->addr = NULL;
|
||||
|
||||
if (r == -1 && errno != CONNECT_IN_PROGRESS) {
|
||||
ERROR("connect");
|
||||
close_and_free_remote(EV_A_ remote);
|
||||
|
||||
Reference in New Issue
Block a user