add validation for sync url

This commit is contained in:
lalitdeore12@gmail.com
2026-01-14 19:41:06 +05:30
parent 19db661c1c
commit ba3d6c01b2
+6
View File
@@ -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 {