Bug on Format date

This commit is contained in:
mr
2024-08-22 11:59:23 +02:00
parent bfa176a7c5
commit d766e3a7c3
2 changed files with 5 additions and 1 deletions

View File

@@ -76,6 +76,10 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, isMySelf bool, dataID str
url = strings.ReplaceAll(url, "localhost", dt.API())
url = strings.ReplaceAll(url, "127.0.0.1", dt.API())
r := regexp.MustCompile("(:[0-9]+)")
ttt := r.FindAllString(url, -1)
for _, t := range ttt {
url = strings.Replace(url, t, ":8080", -1)
}
r.ReplaceAllString(url, ":8080")
}
fmt.Println("LaunchPeerExecution AFT", url, dt.API())