mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 19:22:44 +08:00
feat(updater): add support for multiple Linux package formats and Windows NSIS installers
This commit is contained in:
+3
-1
@@ -145,7 +145,9 @@ export const getIpInfo = async (): Promise<
|
||||
const maxRetries = 2
|
||||
const serviceTimeout = 5000
|
||||
|
||||
const shuffledServices = IP_CHECK_SERVICES.slice().sort(() => Math.random() - 0.5)
|
||||
const shuffledServices = IP_CHECK_SERVICES.slice().sort(
|
||||
() => Math.random() - 0.5,
|
||||
)
|
||||
let lastError: unknown | null = null
|
||||
const userAgent = await getUserAgentPromise()
|
||||
console.debug('User-Agent for IP detection:', userAgent)
|
||||
|
||||
Reference in New Issue
Block a user