include oc in racine path for remote calling

This commit is contained in:
mr
2024-10-15 10:23:07 +02:00
parent 69fe3f8d76
commit 62705cc9b9
2 changed files with 6 additions and 6 deletions

View File

@@ -43,9 +43,9 @@ func (p *PeerCache) urlFormat(url string, dt tools.DataType) string {
r := regexp.MustCompile("(" + localhost + ":[0-9]+)")
t := r.FindString(url)
if t != "" {
url = strings.Replace(url, t, dt.API()+":8080", -1)
url = strings.Replace(url, t, dt.API()+":8080/oc", -1)
} else {
url = strings.ReplaceAll(url, localhost, dt.API()+":8080")
url = strings.ReplaceAll(url, localhost, dt.API()+":8080/oc")
}
} else {
url = url + "/" + dt.API()