Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Unified Diff: webrtc/base/virtualsocketserver.cc

Issue 2377883003: First step in providing a UdpTransportChannel. (Closed)
Patch Set: Unit test: VirtualSocketServer, constructor and nits. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/base/virtualsocketserver.cc
diff --git a/webrtc/base/virtualsocketserver.cc b/webrtc/base/virtualsocketserver.cc
index da2cb1d741a04f28b1ae1480b44cfbb43757a376..1eb6e2f2be566fc5c897a92d84a696ed9822b9ea 100644
--- a/webrtc/base/virtualsocketserver.cc
+++ b/webrtc/base/virtualsocketserver.cc
@@ -1167,6 +1167,12 @@ bool VirtualSocketServer::CanInteractWith(VirtualSocket* local,
return true;
}
+ if (local->was_any()) {
+ return true;
+ }
+ if (remote->was_any()) {
+ return true;
+ }
Taylor Brandstetter 2016/11/04 17:51:07 I don't think this is necessary, is it?
// Check to see if either socket was explicitly bound to IPv6-any.
// These sockets can talk with anyone.
if (local_ip.family() == AF_INET6 && local->was_any()) {
« no previous file with comments | « webrtc/BUILD.gn ('k') | webrtc/p2p/BUILD.gn » ('j') | webrtc/p2p/base/udptransportchannel.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698