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:
@@ -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`,
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user