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

Unified Diff: content/renderer/p2p/port_allocator.cc

Issue 445933005: Support multiple STUN servers for PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/p2p/port_allocator.cc
diff --git a/content/renderer/p2p/port_allocator.cc b/content/renderer/p2p/port_allocator.cc
index be6a72e25a0dac3f12d63fe9d2c702aa693ed9f0..53a71e2b8047675cd4813c550d22ee5c00c0ef95 100644
--- a/content/renderer/p2p/port_allocator.cc
+++ b/content/renderer/p2p/port_allocator.cc
@@ -51,8 +51,7 @@ bool ParsePortNumber(
} // namespace
P2PPortAllocator::Config::Config()
- : stun_server_port(0),
- legacy_relay(true),
+ : legacy_relay(true),
disable_tcp_transport(false) {
}
@@ -259,8 +258,7 @@ void P2PPortAllocatorSession::ParseRelayResponse() {
void P2PPortAllocatorSession::AddConfig() {
const P2PPortAllocator::Config& config = allocator_->config_;
cricket::PortConfiguration* port_config = new cricket::PortConfiguration(
- rtc::SocketAddress(config.stun_server, config.stun_server_port),
- std::string(), std::string());
+ config.stun_servers, std::string(), std::string());
for (size_t i = 0; i < config.relays.size(); ++i) {
cricket::RelayCredentials credentials(config.relays[i].username,
« no previous file with comments | « content/renderer/p2p/port_allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698