Index: remoting/host/plugin/host_script_object.cc |
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc |
index e0565df473e6df70dac4ba9ac320f2d64abf44b6..dae526e06058761ffc53aa374af07b562d01e49f 100644 |
--- a/remoting/host/plugin/host_script_object.cc |
+++ b/remoting/host/plugin/host_script_object.cc |
@@ -551,7 +551,9 @@ void HostNPScriptObject::FinishConnectNetworkThread( |
LOG(INFO) << "NAT state: " << nat_traversal_enabled_; |
host_ = new ChromotingHost( |
host_context_.get(), signal_strategy_.get(), desktop_environment_.get(), |
- NetworkSettings(nat_traversal_enabled_)); |
+ NetworkSettings(nat_traversal_enabled_ ? |
+ NetworkSettings::NAT_TRAVERSAL_ENABLED : |
+ NetworkSettings::NAT_TRAVERSAL_DISABLED)); |
host_->AddStatusObserver(this); |
log_to_server_.reset( |
new LogToServer(host_, ServerLogEntry::IT2ME, signal_strategy_.get())); |