|
@@ -69,14 +69,6 @@ Error TCPServerWinsock::listen(uint16_t p_port,const List<String> *p_accepted_ho
|
|
sockfd = _socket_create(ip_type, SOCK_STREAM, IPPROTO_TCP);
|
|
sockfd = _socket_create(ip_type, SOCK_STREAM, IPPROTO_TCP);
|
|
ERR_FAIL_COND_V(sockfd == INVALID_SOCKET, FAILED);
|
|
ERR_FAIL_COND_V(sockfd == INVALID_SOCKET, FAILED);
|
|
|
|
|
|
- if(ip_type == IP_Address::TYPE_IPV6) {
|
|
|
|
- // Use IPv6 only socket
|
|
|
|
- int yes = 1;
|
|
|
|
- if(setsockopt(sockfd, IPPROTO_IPV6, IPV6_V6ONLY, (const char*)&yes, sizeof(yes)) != 0) {
|
|
|
|
- WARN_PRINT("Unable to unset IPv4 address mapping over IPv6");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
unsigned long par = 1;
|
|
unsigned long par = 1;
|
|
if (ioctlsocket(sockfd, FIONBIO, &par)) {
|
|
if (ioctlsocket(sockfd, FIONBIO, &par)) {
|
|
perror("setting non-block mode");
|
|
perror("setting non-block mode");
|