Skip to content

Commit

Permalink
added windows check
Browse files Browse the repository at this point in the history
  • Loading branch information
morgo committed Oct 24, 2021
1 parent dcf8b86 commit a707103
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tidb-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,13 @@ func overrideConfig(cfg *config.Config) {
if actualFlags[nmInitializeInsecure] {
cfg.Security.SecureBootstrap = !*initializeInsecure
}
// Secure bootstrap initializes with Socket authentication
// which is not supported on windows. Only the insecure bootstrap
// method is supported.
if runtime.GOOS == "windows" && cfg.Security.SecureBootstrap {
err = fmt.Errorf("the option --initialize-secure is not supported on Windows")
terror.MustNil(err)
}
}

func setGlobalVars() {
Expand Down

0 comments on commit a707103

Please sign in to comment.