Skip to content

Commit 6aad7cf

Browse files
authored
fix: allow colons in SB_USER password (#1893)
1 parent 8f7e525 commit 6aad7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/cmd/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func buildConfig(bundledFiles fs.FS, args []string, buildTime string) *server.Se
103103
}
104104

105105
if os.Getenv("SB_USER") != "" {
106-
pieces := strings.Split(os.Getenv("SB_USER"), ":")
106+
pieces := strings.SplitN(os.Getenv("SB_USER"), ":", 2)
107107
if len(pieces) != 2 {
108108
log.Fatal("SB_USER must be in the format user:pass")
109109
}

0 commit comments

Comments
 (0)