From ba3d6c01b2cfb81e3d81917ad08c0432bf98c731 Mon Sep 17 00:00:00 2001 From: "lalitdeore12@gmail.com" Date: Wed, 14 Jan 2026 19:41:06 +0530 Subject: [PATCH] add validation for sync url --- backend/go-app/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 271a545d..2235ec0a 100755 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -4942,6 +4942,12 @@ func handleCloudSetup(resp http.ResponseWriter, request *http.Request) { //log.Printf("Apidata: %s", tmpData.Apikey) // FIXME: Path + + // just in case setup/stop URL is overwritten by region url + if syncUrl != "https://shuffler.io" || syncUrl != "http://localhost:5002" { + syncUrl = "https://shuffler.io" + } + apiPath := "/api/v1/cloud/sync/setup" if tmpData.Disable { if !org.CloudSync {