tinsoftproxy
Advanced tools
Comparing version 1.0.1 to 1.0.2
16
index.js
@@ -149,7 +149,8 @@ const axios = require('axios'); | ||
async getCurrentIP() { | ||
var result = {} | ||
try { | ||
var result = await this.ipconfig();; | ||
return result; | ||
result = await this.ipconfig();; | ||
} catch (e) { | ||
var result = await this.amazonIP();; | ||
result = await this.amazonIP();; | ||
} finally { | ||
return result; | ||
@@ -230,2 +231,6 @@ } | ||
}); | ||
const proxy = get(rps, 'proxy', ''); | ||
this.Stream.emit('log', `Got proxy: ${proxy}, api_key: ${key}`); | ||
return { ...rps, api_key: key }; | ||
@@ -246,2 +251,6 @@ } | ||
}); | ||
const proxy = get(rps, 'proxy', ''); | ||
this.Stream.emit('log', `Changed proxy: ${proxy}, api_key: ${key}`); | ||
return { ...rps, api_key: key }; | ||
@@ -265,2 +274,3 @@ // { | ||
if (passTime >= this.waitProxyLiveTimeout) throw e; | ||
this.Stream.emit('log', `Waited ${passTime}ms until proxy ready`); | ||
return this.waitUntilProxyOK(startTime); | ||
@@ -267,0 +277,0 @@ } |
{ | ||
"name": "tinsoftproxy", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "tinsoftproxy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18903
344