diff --git a/api/api.go b/api/api.go index 0a62b4f68d..78d2091d27 100644 --- a/api/api.go +++ b/api/api.go @@ -462,6 +462,10 @@ func NewClient(config *Config) (*Client, error) { config.Address = parts[1] } + if config.Token == "" { + config.Token = defConfig.Token + } + client := &Client{ config: *config, }