diff --git a/cmd/config.go b/cmd/config.go index c865ce2..f6ede3e 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -96,7 +96,7 @@ func (c *Config) NewClient() *client.Client { // Using a BasicAuth for authentication if c.BasicAuth != "" { - s := strings.Split(c.BasicAuth, ":") + s := strings.SplitN(c.BasicAuth, ":", 2) if len(s) != 2 { check.ExitError(errors.New("specify the user name and password for server authentication ")) }