url format improved

This commit is contained in:
mr 2024-10-07 16:02:03 +02:00
parent 3c14c64f4a
commit 208f69ae7e

View File

@ -45,7 +45,7 @@ func (p *PeerCache) urlFormat(url string, dt tools.DataType) string {
if t != "" { if t != "" {
url = strings.Replace(url, t, dt.API()+":8080", -1) url = strings.Replace(url, t, dt.API()+":8080", -1)
} else { } else {
strings.ReplaceAll(url, localhost, dt.API()+":8080") url = strings.ReplaceAll(url, localhost, dt.API()+":8080")
} }
} else { } else {
url = url + "/" + dt.API() url = url + "/" + dt.API()