diff options
| author | Fabio Alessandrelli | 2017-01-17 09:22:56 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-01-23 20:15:20 +0100 |
| commit | 98a7e2b4e09791705cd9dfd4d13611bc02fe47d4 (patch) | |
| tree | 71b2de60c2871bec73915dfb1e1036c172fbee78 /drivers/unix/stream_peer_tcp_posix.cpp | |
| parent | e4b9b37ccf8495be674bc15cf0bf9d76fe94e6be (diff) | |
| download | godot-98a7e2b4e09791705cd9dfd4d13611bc02fe47d4.tar.gz godot-98a7e2b4e09791705cd9dfd4d13611bc02fe47d4.tar.zst godot-98a7e2b4e09791705cd9dfd4d13611bc02fe47d4.zip | |
Diffstat (limited to 'drivers/unix/stream_peer_tcp_posix.cpp')
| -rw-r--r-- | drivers/unix/stream_peer_tcp_posix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/stream_peer_tcp_posix.cpp b/drivers/unix/stream_peer_tcp_posix.cpp index ae4bf77c3..96258e63f 100644 --- a/drivers/unix/stream_peer_tcp_posix.cpp +++ b/drivers/unix/stream_peer_tcp_posix.cpp @@ -142,7 +142,7 @@ void StreamPeerTCPPosix::set_socket(int p_sockfd, IP_Address p_host, int p_port, Error StreamPeerTCPPosix::connect_to_host(const IP_Address& p_host, uint16_t p_port) { - ERR_FAIL_COND_V( p_host == IP_Address(), ERR_INVALID_PARAMETER); + ERR_FAIL_COND_V( !p_host.is_valid(), ERR_INVALID_PARAMETER); sock_type = p_host.is_ipv4() ? IP::TYPE_IPV4 : IP::TYPE_IPV6; sockfd = _socket_create(sock_type, SOCK_STREAM, IPPROTO_TCP); |
