mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Convert validity checks of IP_Address to is_valid method.
(cherry picked from commit 98a7e2b4e0)
This commit is contained in:
@@ -81,7 +81,7 @@ struct _IP_ResolverPrivate {
|
||||
continue;
|
||||
queue[i].response = IP::get_singleton()->resolve_hostname(queue[i].hostname, queue[i].type);
|
||||
|
||||
if (queue[i].response == IP_Address())
|
||||
if (!queue[i].response.is_valid())
|
||||
queue[i].status = IP::RESOLVER_STATUS_ERROR;
|
||||
else
|
||||
queue[i].status = IP::RESOLVER_STATUS_DONE;
|
||||
|
||||
Reference in New Issue
Block a user