From bfa176a7c5ce72406b65dbad4f5d6bb238224e7e Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 22 Aug 2024 10:39:03 +0200 Subject: [PATCH] casual http debug --- 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 39dd957..b3e17de 100644 --- a/models/peer/peer_cache.go +++ b/models/peer/peer_cache.go @@ -75,7 +75,7 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, isMySelf bool, dataID str if strings.Contains(url, "localhost") || strings.Contains(url, "127.0.0.1") { url = strings.ReplaceAll(url, "localhost", dt.API()) url = strings.ReplaceAll(url, "127.0.0.1", dt.API()) - r := regexp.MustCompile("(:[0-9]{2,4})") + r := regexp.MustCompile("(:[0-9]+)") r.ReplaceAllString(url, ":8080") } fmt.Println("LaunchPeerExecution AFT", url, dt.API())