mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-18 16:25:16 +01:00
Merge pull request #10031 from ywk253100/191128_config
Fix bug when trying to get the external URL
This commit is contained in:
commit
2fb1cc89d9
@ -199,7 +199,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
|
||||
|
Loading…
Reference in New Issue
Block a user