diff --git a/models/peer/peer_cache.go b/models/peer/peer_cache.go index 1eeef2c..38faffb 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -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()