Skip to content

Commit

Permalink
fix: default enable_negotiate_port to false (4-2-x) (#18287)
Browse files Browse the repository at this point in the history
* fix: default enable_negotiate_port to false (#18251)

* chore: command_line is not a pointer
  • Loading branch information
nornagon committed May 14, 2019
1 parent d5cf2e1 commit 96391db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions atom/browser/io_thread.cc
Expand Up @@ -48,6 +48,8 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams(
command_line.GetSwitchValueASCII(switches::kAuthServerWhitelist);
auth_dynamic_params->delegate_whitelist = command_line.GetSwitchValueASCII(
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 @@ -247,6 +247,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 @@ -118,6 +118,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 96391db

Please sign in to comment.