Skip to content

Commit

Permalink
Fix: IPv6 support in shadowsocks-udp
Browse files Browse the repository at this point in the history
  • Loading branch information
semigodking committed Feb 25, 2020
1 parent fdd4fe2 commit dad894d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shadowsocks-udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static void ss_pkt_from_server(int fd, short what, void *_arg)
}
else if (header->addr_type == ss_addrtype_ipv6) {
struct sockaddr_in6 pktaddr = {
.sin6_family = AF_INET,
.sin6_family = AF_INET6,
.sin6_port = header->v6.port,
};
memcpy(&pktaddr.sin6_addr, &header->v6.addr, sizeof(header->v6.addr));
Expand Down

0 comments on commit dad894d

Please sign in to comment.