Skip to content

Commit 035acc2

Browse files
committed
pkg/lwip: remove ipv6only clause for AF_INET6 sockets
1 parent ae7944f commit 035acc2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/lwip/contrib/sock/lwip_sock.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,11 +330,6 @@ static int _create(int type, int proto, uint16_t flags, struct netconn **out)
330330
return -ENOMEM;
331331
}
332332
netconn_set_callback_arg(*out, NULL);
333-
#if LWIP_IPV4 && LWIP_IPV6
334-
if (type & NETCONN_TYPE_IPV6) {
335-
netconn_set_ipv6only(*out, 1);
336-
}
337-
#endif
338333
#if SO_REUSE
339334
if (flags & SOCK_FLAGS_REUSE_EP) {
340335
ip_set_option((*out)->pcb.ip, SOF_REUSEADDR);

0 commit comments

Comments
 (0)