feat: failover SuperAdmin domains for get_user/get_version

Replace nerkh.gold with adm.montzar/montech/montest and prefer last successful URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-11 12:13:42 +03:30
co-authored by Cursor
parent 4361e71030
commit d2183c9a3c
4 changed files with 61 additions and 20 deletions
+8 -2
View File
@@ -20,13 +20,19 @@ function getProtocol() {
function getVersionUrls() {
const protocol = getProtocol()
const host = String(window.location.hostname || '').trim()
const domain = encodeURIComponent(
!host || host === 'localhost' || host === '127.0.0.1' ? 'k.montzar.ir' : host,
)
return [
'https://nerkh.gold/get_version',
`https://adm.montzar.ir/get_version?domain=${domain}`,
`https://adm.montech.ir/get_version?domain=${domain}`,
`https://adm.montest.ir/get_version?domain=${domain}`,
'https://tablo.talasevin.ir/get_version',
'https://abshode-service.montgit.ir/server/get_version',
`${protocol}//212.23.201.173:8381/get_version`,
`${protocol}//91.212.174.137:4040/server/get_version`
`${protocol}//91.212.174.137:4040/server/get_version`,
]
}