Index: webrtc/base/network.cc |
diff --git a/webrtc/base/network.cc b/webrtc/base/network.cc |
index 36d028b49348e899874296b01646f5017a7043f2..ba056e4635d0be6de427a6203beb6eae3c590a86 100644 |
--- a/webrtc/base/network.cc |
+++ b/webrtc/base/network.cc |
@@ -839,7 +839,12 @@ IPAddress BasicNetworkManager::QueryDefaultLocalAddress(int family) const { |
if (socket->Connect(SocketAddress( |
family == AF_INET ? kPublicIPv4Host : kPublicIPv6Host, kPublicPort)) < |
0) { |
- LOG(LS_INFO) << "Connect failed with " << socket->GetError(); |
+ if (socket->GetError() != ENETUNREACH |
honghaiz3
2016/09/28 19:36:30
Should we log an error message if the query for bo
skvlad
2016/09/28 21:22:54
This would have to be elsewhere in NetworkManager
honghaiz3
2016/09/28 21:33:05
Agree that can be done in a separate CL. Perhaps a
skvlad
2016/09/28 22:27:46
Filed https://bugs.chromium.org/p/webrtc/issues/de
|
+ && socket->GetError() != EHOSTUNREACH) { |
+ // Ignore the expected case of "host/net unreachable" - which happens if |
+ // the network is V4- or V6-only. |
+ LOG(LS_INFO) << "Connect failed with " << socket->GetError(); |
+ } |
return IPAddress(); |
} |
return socket->GetLocalAddress().ipaddr(); |