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

Unified Diff: webrtc/p2p/base/stunport.cc

Issue 1556743002: Bind a socket to a network if the network handle is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 months 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/p2p/base/stunport.cc
diff --git a/webrtc/p2p/base/stunport.cc b/webrtc/p2p/base/stunport.cc
index 67cf789da8e3c869322d959f6939a2e339db9ed9..2312bad3bbfe09a0e43d003f7769bf36b4288201 100644
--- a/webrtc/p2p/base/stunport.cc
+++ b/webrtc/p2p/base/stunport.cc
@@ -214,8 +214,8 @@ UDPPort::UDPPort(rtc::Thread* thread,
bool UDPPort::Init() {
if (!SharedSocket()) {
ASSERT(socket_ == NULL);
- socket_ = socket_factory()->CreateUdpSocket(
- rtc::SocketAddress(ip(), 0), min_port(), max_port());
+ socket_ = socket_factory()->CreateUdpSocketOnNetwork(
+ rtc::SocketAddress(ip(), 0), min_port(), max_port(), Network());
if (!socket_) {
LOG_J(LS_WARNING, this) << "UDP socket creation failed";
return false;

Powered by Google App Engine
This is Rietveld 408576698