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 = |