Browse Source

redir增加IPv6支持

pull/131/head
Blaok 10 years ago
parent
commit
afe43922fa
1 changed files with 0 additions and 1 deletions
  1. 1
      src/redir.c

1
src/redir.c

@ -110,7 +110,6 @@ int create_and_bind(const char *addr, const char *port)
int opt = 1;
setsockopt(listen_sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt));
// setsockopt(listen_sock, IPPROTO_IPV6, SO_REUSEADDR, &opt, sizeof(opt));
setsockopt(listen_sock, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt));
#ifdef SO_NOSIGPIPE
setsockopt(listen_sock, SOL_SOCKET, SO_NOSIGPIPE, &opt, sizeof(opt));

Loading…
Cancel
Save