mirror of
https://github.com/goharbor/harbor
synced 2025-04-25 13:14:13 +00:00
Fix bug when trying to get the external URL
Fix bug when trying to get the external URL Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
6c7ef36e60
commit
2498d597b4
@ -253,7 +253,7 @@ func ExtURL() (string, error) {
|
|||||||
log.Errorf("failed to load config, error %v", err)
|
log.Errorf("failed to load config, error %v", err)
|
||||||
}
|
}
|
||||||
l := strings.Split(endpoint, "://")
|
l := strings.Split(endpoint, "://")
|
||||||
if len(l) > 0 {
|
if len(l) > 1 {
|
||||||
return l[1], nil
|
return l[1], nil
|
||||||
}
|
}
|
||||||
return endpoint, nil
|
return endpoint, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user