diff --git a/src/core/config/config.go b/src/core/config/config.go index fe0e2b7a4..d5dd6118f 100755 --- a/src/core/config/config.go +++ b/src/core/config/config.go @@ -253,7 +253,7 @@ func ExtURL() (string, error) { log.Errorf("failed to load config, error %v", err) } l := strings.Split(endpoint, "://") - if len(l) > 0 { + if len(l) > 1 { return l[1], nil } return endpoint, nil