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 <pulkomandy@pulkomandy.tk>
This commit is contained in:
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user