url format improved
This commit is contained in:
parent
3c14c64f4a
commit
208f69ae7e
@ -45,7 +45,7 @@ func (p *PeerCache) urlFormat(url string, dt tools.DataType) string {
|
||||
if t != "" {
|
||||
url = strings.Replace(url, t, dt.API()+":8080", -1)
|
||||
} else {
|
||||
strings.ReplaceAll(url, localhost, dt.API()+":8080")
|
||||
url = strings.ReplaceAll(url, localhost, dt.API()+":8080")
|
||||
}
|
||||
} else {
|
||||
url = url + "/" + dt.API()
|
||||
|
Loading…
Reference in New Issue
Block a user