From 208f69ae7e4b9b57f8a09c7a49bb067f4225ae49 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 7 Oct 2024 16:02:03 +0200 Subject: [PATCH] url format improved --- models/peer/peer_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()