diff --git a/packages/main/src/fingerprint/prepare.ts b/packages/main/src/fingerprint/prepare.ts index 15a6665..e4aa781 100644 --- a/packages/main/src/fingerprint/prepare.ts +++ b/packages/main/src/fingerprint/prepare.ts @@ -17,15 +17,13 @@ export const getProxyInfo = async (ip: string, gateway: 'ip2location' | 'geoip') let attempts = 0; const maxAttempts = 3; let localIP = ''; - if (import.meta.env.DEV) { - try { - const {data} = await api.get('https://api64.ipify.org?format=json', { - timeout: 5_000, - }); - localIP = data.ip; - } catch (error) { - logger.error(error); - } + try { + const {data} = await api.get('https://api64.ipify.org?format=json', { + timeout: 5_000, + }); + localIP = data.ip; + } catch (error) { + logger.error(error); } while (attempts < maxAttempts) {