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

Unified Diff: remoting/host/simple_host_process.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: fix unittests 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
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index 4199d9fe1e83c77ed2bbea96fd1134e4c3b41d3c..ad454ae189d48af0b35e7e20afded5de11e397c5 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -344,8 +344,10 @@ int main(int argc, char** argv) {
simple_host.set_protocol_config(config.release());
}
- simple_host.network_settings()->allow_nat_traversal =
- !cmd_line->HasSwitch(kDisableNatTraversalSwitchName);
+ simple_host.network_settings()->nat_traversal_mode =
+ cmd_line->HasSwitch(kDisableNatTraversalSwitchName) ?
+ remoting::protocol::TransportConfig::NAT_TRAVERSAL_DISABLED :
+ remoting::protocol::TransportConfig::NAT_TRAVERSAL_ENABLED;
if (cmd_line->HasSwitch(kMinPortSwitchName)) {
std::string min_port_str =
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/protocol/jingle_session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698