arn-browser 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -506,7 +506,7 @@ export async function getActiveProxy({ instance_name }) {
|
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
await sleep(15000); // Wait for boot
|
|
509
|
-
const proxyAlive = await isProxyAlive(publicIp,
|
|
509
|
+
const proxyAlive = await isProxyAlive(publicIp, 10001);
|
|
510
510
|
await sleep(5000);
|
|
511
511
|
|
|
512
512
|
if (!proxyAlive) {
|
|
@@ -536,7 +536,7 @@ export async function getActiveProxyWithStartStop({ instance_name }) {
|
|
|
536
536
|
let publicIp = await getPublicIpAddress({ instance_name });
|
|
537
537
|
|
|
538
538
|
await sleep(15000); // Wait for boot
|
|
539
|
-
const proxyAlive = await isProxyAlive(publicIp,
|
|
539
|
+
const proxyAlive = await isProxyAlive(publicIp, 10001);
|
|
540
540
|
|
|
541
541
|
if (!proxyAlive) {
|
|
542
542
|
console.log("No Unique IP Found or Proxy Dead");
|
|
@@ -577,7 +577,7 @@ export async function getActiveProxyConditional({ instance_name }) {
|
|
|
577
577
|
await sleep(2000);
|
|
578
578
|
|
|
579
579
|
let publicIp = await getPublicIpAddress({ instance_name });
|
|
580
|
-
const proxyAlive = await isProxyAlive(publicIp,
|
|
580
|
+
const proxyAlive = await isProxyAlive(publicIp, 10001);
|
|
581
581
|
|
|
582
582
|
if (!proxyAlive) {
|
|
583
583
|
console.log("Proxy is not alive or no unique IP found.");
|
|
@@ -597,7 +597,7 @@ export async function getActiveProxyConditional({ instance_name }) {
|
|
|
597
597
|
* Uses native Node.js HTTP/HTTPS modules via 'nativeGet'.
|
|
598
598
|
*
|
|
599
599
|
* @param {string} proxyHost - IP address of the proxy.
|
|
600
|
-
* @param {number} proxyPort - Port of the proxy (usually
|
|
600
|
+
* @param {number} proxyPort - Port of the proxy (usually 10001).
|
|
601
601
|
*/
|
|
602
602
|
export async function isProxyAlive(proxyHost, proxyPort) {
|
|
603
603
|
const agent = new SocksProxyAgent(`socks5://${proxyHost}:${proxyPort}`);
|