2
0
Эх сурвалжийг харах

Adjust remote auth disabled check syntax

Jonathon Reinhart 4 жил өмнө
parent
commit
3debf4127d
1 өөрчлөгдсөн 1 нэмэгдсэн , 2 устгасан
  1. 1 2
      config.go

+ 1 - 2
config.go

@@ -91,8 +91,7 @@ func setupRemoteAuth() {
 	logger := log.WithField("remote_auth", *remoteAuthStr)
 
 	// Remote auth disabled?
-	switch *remoteAuthStr {
-	case "", "none":
+	if *remoteAuthStr == "" || *remoteAuthStr == "none" {
 		if *remoteUser != "" {
 			logger.Fatal("remote_user given but not used")
 		}