Skip to content

Commit

Permalink
revert a change in DST.ADDR and DST.PORT of UDP Associate request (#210
Browse files Browse the repository at this point in the history
…) (#211)
  • Loading branch information
ge9 authored Dec 4, 2024
1 parent 3c1f0a9 commit f1837c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion socks5-udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ static struct evbuffer* socks5_mkpassword_plain_wrapper(void *p)

static struct evbuffer* socks5_mkassociate(void *p)
{
return socks5_mkcommand_plain(socks5_cmd_udp_associate, p);
struct sockaddr_storage sa;
memset(&sa, 0, sizeof(sa));
sa.ss_family = ((const struct sockaddr_storage *)p)->ss_family;
return socks5_mkcommand_plain(socks5_cmd_udp_associate, &sa);
}

static void socks5_fill_preamble(
Expand Down

0 comments on commit f1837c8

Please sign in to comment.