[haiku-commits] haiku: hrev50988 - src/preferences/network

  • From: pulkomandy@xxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 28 Feb 2017 18:53:14 +0100 (CET)

hrev50988 adds 1 changeset to branch 'master'
old head: 5f56133770d28167ad4bd8e34e3dd5c125abb7ff
new head: df3ba9532d9d1f8b889dcb6869e96af9dcdc1177
overview: 
http://cgit.haiku-os.org/haiku/log/?qt=range&q=df3ba9532d9d+%5E5f56133770d2

----------------------------------------------------------------------------

df3ba9532d9d: 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@xxxxxxxxxxxxx>

                                         [ Kyle Ambroff <kyle@xxxxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev50988
Commit:      df3ba9532d9d1f8b889dcb6869e96af9dcdc1177
URL:         http://cgit.haiku-os.org/haiku/commit/?id=df3ba9532d9d
Author:      Kyle Ambroff <kyle@xxxxxxxxxxx>
Date:        Mon Feb 27 22:47:37 2017 UTC
Committer:   Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Commit-Date: Tue Feb 28 17:53:06 2017 UTC

Ticket:      https://dev.haiku-os.org/ticket/12399

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 1 deletion(-)
src/preferences/network/InterfaceAddressView.cpp | 3 ++-

----------------------------------------------------------------------------

diff --git a/src/preferences/network/InterfaceAddressView.cpp 
b/src/preferences/network/InterfaceAddressView.cpp
index 520dd58..e40ebd0 100644
--- a/src/preferences/network/InterfaceAddressView.cpp
+++ b/src/preferences/network/InterfaceAddressView.cpp
@@ -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);
 }


Other related posts:

  • » [haiku-commits] haiku: hrev50988 - src/preferences/network - pulkomandy