IP address control: don't try to DNS resolve

* This is used when configuring the DNS client, so resolving will not
  work
* It is supposed to be a control for entering IPs, not domain names.

Fixes #12464.
This commit is contained in:
Adrien Destugues 2015-11-13 21:50:11 +01:00
parent 1f70a8df4b
commit 7460727d4a

View File

@ -78,7 +78,8 @@ IPAddressControl::_UpdateMark()
} }
BNetworkAddress address; BNetworkAddress address;
bool success = address.SetTo(fFamily, Text()) == B_OK; bool success = address.SetTo(fFamily, Text(), (char*)NULL,
B_NO_ADDRESS_RESOLUTION) == B_OK;
MarkAsInvalid(!success); MarkAsInvalid(!success);
} }