Booking trace API

This commit is contained in:
mr 2024-08-21 16:07:57 +02:00
parent 950bbf1d7b
commit 39030a0a80

View File

@ -42,7 +42,7 @@ func (p *PeerCache) checkPeerStatus(peerID string, caller *tools.HTTPCaller) boo
url := res.(*Peer).Url
if strings.Contains(url, "localhost") || strings.Contains(url, "127.0.0.1") {
url = strings.ReplaceAll(url, "localhost", utils.PEER.API())
url = strings.ReplaceAll(url, "127.0.0.1", utils.PEER.API())
}
methods := caller.URLS[utils.PEER.String()]
if methods == nil {