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

Unified Diff: remoting/protocol/pepper_transport_factory.cc

Issue 9549029: Set incoming_only flag on the host side when NAT traversal is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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: remoting/protocol/pepper_transport_factory.cc
diff --git a/remoting/protocol/pepper_transport_factory.cc b/remoting/protocol/pepper_transport_factory.cc
index 5f6371207ab55c0e3587824865a0be87e569b9f0..5d380cfe09134cc4504678e5647b11aed3516dfa 100644
--- a/remoting/protocol/pepper_transport_factory.cc
+++ b/remoting/protocol/pepper_transport_factory.cc
@@ -149,7 +149,7 @@ void PepperStreamTransport::Connect(
LOG(ERROR) << "Failed to set TCP ACK delay.";
}
- if (config_.nat_traversal) {
+ if (config_.nat_traversal_mode == TransportConfig::NAT_TRAVERSAL_ENABLED) {
if (transport->SetProperty(
PP_TRANSPORTPROPERTY_STUN_SERVER,
pp::Var(config_.stun_server)) != PP_OK) {

Powered by Google App Engine
This is Rietveld 408576698