panrouter 5.4.1 → 5.4.2
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 +1 -1
- package/pool-worker.mjs +2 -5
package/package.json
CHANGED
package/pool-worker.mjs
CHANGED
|
@@ -203,14 +203,11 @@ function handleUpgrade() {
|
|
|
203
203
|
log("正在重启代理服务...");
|
|
204
204
|
killPort(SERVER_PORT);
|
|
205
205
|
|
|
206
|
-
//
|
|
206
|
+
// 启动新实例,在当前终端前台运行
|
|
207
207
|
const child = spawn(process.execPath, [process.argv[1], "--pool"], {
|
|
208
208
|
cwd: __dirname,
|
|
209
|
-
stdio: "
|
|
210
|
-
detached: true,
|
|
211
|
-
windowsHide: true,
|
|
209
|
+
stdio: "inherit",
|
|
212
210
|
});
|
|
213
|
-
child.unref();
|
|
214
211
|
|
|
215
212
|
log("新实例已在后台启动", "OFF");
|
|
216
213
|
process.exit(0);
|