Skip to content

Commit

Permalink
fix: default enable_negotiate_port to false (#18284)
Browse files Browse the repository at this point in the history
  • Loading branch information
trop[bot] authored and nornagon committed May 15, 2019
1 parent 693d840 commit a60ad6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atom/browser/net/system_network_context_manager.cc
Expand Up @@ -51,6 +51,8 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams() {
command_line->GetSwitchValueASCII(atom::switches::kAuthServerWhitelist);
auth_dynamic_params->delegate_whitelist = command_line->GetSwitchValueASCII(
atom::switches::kAuthNegotiateDelegateWhitelist);
auth_dynamic_params->enable_negotiate_port =
command_line->HasSwitch(atom::switches::kEnableAuthNegotiatePort);

return auth_dynamic_params;
}
Expand Down
3 changes: 3 additions & 0 deletions atom/common/options_switches.cc
Expand Up @@ -239,6 +239,9 @@ const char kAuthServerWhitelist[] = "auth-server-whitelist";
const char kAuthNegotiateDelegateWhitelist[] =
"auth-negotiate-delegate-whitelist";

// If set, include the port in generated Kerberos SPNs.
const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port";

} // namespace switches

} // namespace atom
1 change: 1 addition & 0 deletions atom/common/options_switches.h
Expand Up @@ -119,6 +119,7 @@ extern const char kDiskCacheSize[];
extern const char kIgnoreConnectionsLimit[];
extern const char kAuthServerWhitelist[];
extern const char kAuthNegotiateDelegateWhitelist[];
extern const char kEnableAuthNegotiatePort[];

} // namespace switches

Expand Down

0 comments on commit a60ad6a

Please sign in to comment.