Skip to content

Commit

Permalink
IP address control: don't try to DNS resolve
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
pulkomandy committed Nov 13, 2015
1 parent 1f70a8d commit 7460727
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/preferences/network/IPAddressControl.cpp
Expand Up @@ -78,7 +78,8 @@ IPAddressControl::_UpdateMark()
}

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);
}

0 comments on commit 7460727

Please sign in to comment.