channel-worker 1.6.7 → 1.6.9
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/lib/nst-manager.js +6 -5
- package/package.json +1 -1
package/lib/nst-manager.js
CHANGED
|
@@ -149,11 +149,6 @@ class NstManager {
|
|
|
149
149
|
}
|
|
150
150
|
} catch {}
|
|
151
151
|
|
|
152
|
-
// Set proxy before launch
|
|
153
|
-
if (options.proxy) {
|
|
154
|
-
await this.setProxy(profileId, options.proxy);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
152
|
const connectConfig = {
|
|
158
153
|
headless: false,
|
|
159
154
|
autoClose: false,
|
|
@@ -163,6 +158,12 @@ class NstManager {
|
|
|
163
158
|
},
|
|
164
159
|
};
|
|
165
160
|
|
|
161
|
+
// Pass proxy as URL string in connect config (Nstbrowser API format)
|
|
162
|
+
if (options.proxy) {
|
|
163
|
+
connectConfig.proxy = options.proxy;
|
|
164
|
+
console.log(`[nst] Proxy: ${options.proxy}`);
|
|
165
|
+
}
|
|
166
|
+
|
|
166
167
|
if (options.extensionPath) {
|
|
167
168
|
connectConfig.args['--load-extension'] = options.extensionPath;
|
|
168
169
|
connectConfig.args['--disable-extensions-except'] = options.extensionPath;
|