Skip to content

Commit 7853d3b

Browse files
committed
适配命令行参数用法,修复部分参数不生效的问题
1 parent aacf47b commit 7853d3b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

composables/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const getServerArgs = () => {
2121
args.push("--relay-network-whitelist");
2222
}
2323
if (mainStore.serverConfig.privateMode) {
24-
args.push("--private-mode");
24+
args.push("--private-mode", "true");
2525
}
2626
return args;
2727
};

pages/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@
14121412
args.push("--proxy-forward-by-system");
14131413
}
14141414
if (mainStore.config.acceptDNS) {
1415-
args.push("--accept-dns");
1415+
args.push("--accept-dns", "true");
14161416
}
14171417
if (mainStore.config.enablePortForward) {
14181418
let formatPortForward = mainStore.config.portForwardData.trim().split("\n");
@@ -1424,7 +1424,7 @@
14241424
}
14251425
}
14261426
if(mainStore.config.privateMode) {
1427-
args.push("--private-mode");
1427+
args.push("--private-mode", "true");
14281428
}
14291429
return args;
14301430
};

0 commit comments

Comments
 (0)