aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/tcp_server_posix.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-12-01 05:05:44 +0100
committerFabio Alessandrelli2017-01-04 00:46:32 +0100
commit47ae6c6507e1081e48d34c21cc3925ee3ae95a47 (patch)
tree021459e7efed8253de6c59aa5720718cf587a622 /drivers/unix/tcp_server_posix.cpp
parent5e79ac72b793ebde983f8c1cae58ea40c546c646 (diff)
downloadgodot-47ae6c6507e1081e48d34c21cc3925ee3ae95a47.tar.gz
godot-47ae6c6507e1081e48d34c21cc3925ee3ae95a47.tar.zst
godot-47ae6c6507e1081e48d34c21cc3925ee3ae95a47.zip
Move V6ONLY flag selection inside helpers
(cherry picked from commit 4d90a4fcd5fcdca42df47062f94a1fa4e5635a94)
Diffstat (limited to 'drivers/unix/tcp_server_posix.cpp')
-rw-r--r--drivers/unix/tcp_server_posix.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/unix/tcp_server_posix.cpp b/drivers/unix/tcp_server_posix.cpp
index e6f3614cb..bf3b7369e 100644
--- a/drivers/unix/tcp_server_posix.cpp
+++ b/drivers/unix/tcp_server_posix.cpp
@@ -75,13 +75,6 @@ Error TCPServerPosix::listen(uint16_t p_port,const List<String> *p_accepted_host
ERR_FAIL_COND_V(sockfd == -1, 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");
- }
- }
#ifndef NO_FCNTL
fcntl(sockfd, F_SETFL, O_NONBLOCK);
#else