Browse Source

Fix bug for ss-server udp sendto_remote error (#578)

pull/581/head
H2NCH2COOH 8 years ago
committed by Max Lv
parent
commit
43fde8d39c
1 changed files with 1 additions and 0 deletions
  1. 1
      src/udprelay.c

1
src/udprelay.c

@ -1176,6 +1176,7 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents)
remote_ctx->server_ctx = server_ctx; remote_ctx->server_ctx = server_ctx;
remote_ctx->addr_header_len = addr_header_len; remote_ctx->addr_header_len = addr_header_len;
memcpy(remote_ctx->addr_header, addr_header, addr_header_len); memcpy(remote_ctx->addr_header, addr_header, addr_header_len);
memcpy(&remote_ctx->dst_addr, &dst_addr, sizeof(struct sockaddr_storage));
} else { } else {
ERROR("[udp] bind() error"); ERROR("[udp] bind() error");
goto CLEAN_UP; goto CLEAN_UP;

Loading…
Cancel
Save