diff options
-rw-r--r-- | remoting/host/plugin/policy_hack/nat_policy.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/remoting/host/plugin/policy_hack/nat_policy.cc b/remoting/host/plugin/policy_hack/nat_policy.cc index 07a28de..c32ed37 100644 --- a/remoting/host/plugin/policy_hack/nat_policy.cc +++ b/remoting/host/plugin/policy_hack/nat_policy.cc @@ -88,9 +88,18 @@ void NatPolicy::UpdateNatPolicy(base::DictionaryValue* new_policy) { if (!new_policy->HasKey(kNatPolicyName)) { // If unspecified, the default value of this policy is true. // - // TODO(ajwong): Currently defaults to false until we have policy - // implemented and verified in all 3 platforms. + // TODO(dmaclach): Currently defaults to false on Mac and Linux until we + // have polices in place on those platforms. +#if defined(OS_WIN) + new_nat_enabled_state = true; +#elif defined(OS_MACOSX) new_nat_enabled_state = false; +#elif defined(OS_LINUX) + new_nat_enabled_state = false; +#else + // Be conservative for now + new_nat_enabled_state = false; +#endif // defined(OS_WIN) } else { // Otherwise, try to parse the value and only change from false if we get // a successful read. |