gologin 2.1.25 → 2.1.26
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/gologin.js +7 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/gologin.js
CHANGED
|
@@ -785,7 +785,7 @@ export class GoLogin {
|
|
|
785
785
|
|
|
786
786
|
const checkData = await checkSocksProxy(agent);
|
|
787
787
|
|
|
788
|
-
const body = checkData || {};
|
|
788
|
+
const body = checkData.body || {};
|
|
789
789
|
if (!body.ip && checkData.statusCode.toString().startsWith('4')) {
|
|
790
790
|
throw checkData;
|
|
791
791
|
}
|
|
@@ -929,10 +929,13 @@ export class GoLogin {
|
|
|
929
929
|
|
|
930
930
|
if (proxy) {
|
|
931
931
|
const hr_rules = `"MAP * 0.0.0.0 , EXCLUDE ${proxy_host}"`;
|
|
932
|
-
params.push(`--proxy-server=${proxy}`);
|
|
933
932
|
params.push(`--host-resolver-rules=${hr_rules}`);
|
|
934
933
|
}
|
|
935
934
|
|
|
935
|
+
if (proxy && Number(this.browserMajorVersion) < this.newProxyOrbbitaMajorVersion) {
|
|
936
|
+
params.push(`--proxy-server=${proxy}`);
|
|
937
|
+
}
|
|
938
|
+
|
|
936
939
|
if (Array.isArray(this.extra_params) && this.extra_params.length) {
|
|
937
940
|
params = params.concat(this.extra_params);
|
|
938
941
|
}
|
|
@@ -945,9 +948,8 @@ export class GoLogin {
|
|
|
945
948
|
console.log('params', params);
|
|
946
949
|
const child = execFile(ORBITA_BROWSER, params, { env });
|
|
947
950
|
this.processSpawned = child;
|
|
948
|
-
//
|
|
949
|
-
child.
|
|
950
|
-
child.stderr.on('data', (data) => console.log(data.toString()));
|
|
951
|
+
// child.stdout.on('error', (data) => console.log(data.toString()));
|
|
952
|
+
// child.stderr.on('data', (data) => console.log(data.toString()));
|
|
951
953
|
debug('SPAWN CMD', ORBITA_BROWSER, params.join(' '));
|
|
952
954
|
}
|
|
953
955
|
|