support noipv6 being set externally even when there is perfectly good
IPv6 support.
This commit is contained in:
parent
1856c8a2d7
commit
d0e735e2c2
@ -12,7 +12,7 @@
|
|||||||
int socket_tcp6(void) {
|
int socket_tcp6(void) {
|
||||||
int s;
|
int s;
|
||||||
#if defined(LIBC_HAS_IP6) && defined(SOCK_NONBLOCK)
|
#if defined(LIBC_HAS_IP6) && defined(SOCK_NONBLOCK)
|
||||||
if ((s=socket(PF_INET6,SOCK_STREAM|SOCK_NONBLOCK,IPPROTO_TCP))>-1 || errno!=EINVAL) return s;
|
if ((s=socket(noipv6?PF_INET:PF_INET6,SOCK_STREAM|SOCK_NONBLOCK,IPPROTO_TCP))>-1 || errno!=EINVAL) return s;
|
||||||
#endif
|
#endif
|
||||||
s=socket_tcp6b();
|
s=socket_tcp6b();
|
||||||
if (s==-1) return -1;
|
if (s==-1) return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user