You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix windows debugger connection problems.
Unify network socket creation between platform. Ensure IPV6_V6ONLY flag is not set on sockets (allow IPv4 connection in IPv6 socket, dual-stack).
This commit is contained in:
@@ -71,8 +71,8 @@ void TCPServerPosix::make_default() {
|
||||
Error TCPServerPosix::listen(uint16_t p_port, IP_Address::AddrType p_type, const List<String> *p_accepted_hosts) {
|
||||
|
||||
int sockfd;
|
||||
int family = p_type == IP_Address::TYPE_IPV6 ? AF_INET6 : AF_INET;
|
||||
sockfd = socket(family, SOCK_STREAM, 0);
|
||||
sockfd = _socket_create(p_type, SOCK_STREAM, IPPROTO_TCP);
|
||||
|
||||
ERR_FAIL_COND_V(sockfd == -1, FAILED);
|
||||
#ifndef NO_FCNTL
|
||||
fcntl(sockfd, F_SETFL, O_NONBLOCK);
|
||||
|
||||
Reference in New Issue
Block a user