Don't query DNS when statically configuring an interface

Fixes #12399

The Network preferences app was querying DNS to find a hostname
associated with the IP address, netmask and gateway when statically
configuring an interface. This is obviously unecessary and leads to
unexpected blocking when DNS is not available.

Adding B_NO_ADDRESS_RESOLUTION flag to disable the reverse lookup.

Signed-off-by: Adrien Destugues <[email protected]>
This commit is contained in:
Kyle Ambroff
2017-02-28 18:53:06 +01:00
committed by Adrien Destugues
parent 5f56133770
commit df3ba9532d
@@ -344,5 +344,6 @@ InterfaceAddressView::_SetAddress(BNetworkAddress& address, const char* text)
if (string.IsEmpty())
return;
address.SetTo(string.String());
address.SetTo(string.String(), static_cast<uint16>(0),
B_NO_ADDRESS_RESOLUTION);
}