aboutsummaryrefslogtreecommitdiff
path: root/core/io/packet_peer_udp.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli2017-01-17 09:22:56 +0100
committerFabio Alessandrelli2017-01-23 20:15:20 +0100
commit98a7e2b4e09791705cd9dfd4d13611bc02fe47d4 (patch)
tree71b2de60c2871bec73915dfb1e1036c172fbee78 /core/io/packet_peer_udp.cpp
parente4b9b37ccf8495be674bc15cf0bf9d76fe94e6be (diff)
downloadgodot-98a7e2b4e09791705cd9dfd4d13611bc02fe47d4.tar.gz
godot-98a7e2b4e09791705cd9dfd4d13611bc02fe47d4.tar.zst
godot-98a7e2b4e09791705cd9dfd4d13611bc02fe47d4.zip
Convert validity checks of IP_Address to is_valid method.
Diffstat (limited to '')
-rw-r--r--core/io/packet_peer_udp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/packet_peer_udp.cpp b/core/io/packet_peer_udp.cpp
index 9fec807bf..4756d1699 100644
--- a/core/io/packet_peer_udp.cpp
+++ b/core/io/packet_peer_udp.cpp
@@ -43,7 +43,7 @@ Error PacketPeerUDP::_set_dest_address(const String& p_address, int p_port) {
ip=p_address;
} else {
ip=IP::get_singleton()->resolve_hostname(p_address, ip_type);
- if (ip==IP_Address())
+ if (!ip.is_valid())
return ERR_CANT_RESOLVE;
}