mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Convert validity checks of IP_Address to is_valid method.
This commit is contained in:
parent
e4b9b37ccf
commit
98a7e2b4e0
9 changed files with 32 additions and 11 deletions
|
@ -82,7 +82,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue