Index: webrtc/p2p/base/tcpport.cc |
diff --git a/webrtc/p2p/base/tcpport.cc b/webrtc/p2p/base/tcpport.cc |
index 8fcbfe3cdfdf53053da965c8e1c10d64296ad0b4..acaa6404cbec08eaaabeb2d279eb60673a0bfd6a 100644 |
--- a/webrtc/p2p/base/tcpport.cc |
+++ b/webrtc/p2p/base/tcpport.cc |
@@ -379,6 +379,15 @@ void TCPConnection::OnConnect(rtc::AsyncPacketSocket* socket) { |
<< socket->GetRemoteAddress().ToSensitiveString(); |
set_connected(true); |
connection_pending_ = false; |
+ } else if (IPIsAny(port()->ip())) { |
juberti
2015/09/23 21:00:15
I would have just combined this into the case abov
|
+ LOG(LS_WARNING) << "Socket is bound to a different address:" |
+ << socket->GetLocalAddress().ipaddr().ToString() |
+ << ", rather then the local port:" |
+ << port()->ip().ToString() |
+ << ". Still allowing it since it's any address" |
+ << ", possibly caused by multi-routes being disabled."; |
+ set_connected(true); |
+ connection_pending_ = false; |
} else { |
LOG_J(LS_WARNING, this) << "Dropping connection as TCP socket bound to IP " |
<< socket_ip.ToSensitiveString() |