@qpjoy/tunnel-cli 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/hdo.js +7 -7
  2. package/package.json +2 -2
package/dist/hdo.js CHANGED
@@ -292,7 +292,7 @@ function statusCommand(input) {
292
292
  const installDir = resolveInstallDir(input.installDir || state.installDir);
293
293
  const runtime = (0, electron_core_wireguard_1.resolveWireGuardConnectionRuntime)({
294
294
  installDir,
295
- allowSystemFallback: true,
295
+ allowSystemFallback: false,
296
296
  });
297
297
  process.stdout.write(`State file: ${stateFile}\n`);
298
298
  process.stdout.write(`Server URL: ${state.serverUrl || 'unset'}\n`);
@@ -345,7 +345,7 @@ async function downCommand(input) {
345
345
  if (process.platform === 'linux') {
346
346
  const runtime = (0, electron_core_wireguard_1.resolveWireGuardConnectionRuntime)({
347
347
  installDir,
348
- allowSystemFallback: true,
348
+ allowSystemFallback: false,
349
349
  });
350
350
  if (commandAvailable('systemctl') && systemdUnitExists('wg-quick@.service')) {
351
351
  inheritRequired('systemctl', ['disable', '--now', `wg-quick@${interfaceName}`]);
@@ -359,7 +359,7 @@ async function downCommand(input) {
359
359
  }
360
360
  const runtime = (0, electron_core_wireguard_1.resolveWireGuardConnectionRuntime)({
361
361
  installDir,
362
- allowSystemFallback: true,
362
+ allowSystemFallback: false,
363
363
  });
364
364
  if (process.platform === 'darwin') {
365
365
  if (!canReadFile(configPath)) {
@@ -686,7 +686,7 @@ function resolveKeypair(options, previous, installDir) {
686
686
  }
687
687
  const runtime = (0, electron_core_wireguard_1.resolveWireGuardRuntime)({
688
688
  installDir,
689
- allowSystemFallback: true,
689
+ allowSystemFallback: false,
690
690
  });
691
691
  if (!runtime.command) {
692
692
  throw new Error(runtime.error ?? 'WireGuard wg command unavailable.');
@@ -765,7 +765,7 @@ async function startSystemTunnel(interfaceName, configPath, installDir) {
765
765
  }
766
766
  const runtime = (0, electron_core_wireguard_1.resolveWireGuardConnectionRuntime)({
767
767
  installDir,
768
- allowSystemFallback: true,
768
+ allowSystemFallback: false,
769
769
  });
770
770
  if (process.platform === 'darwin') {
771
771
  const result = await (0, electron_core_wireguard_1.installDarwinWireGuardLaunchDaemon)({ runtime, configPath });
@@ -929,14 +929,14 @@ function printWireGuardRuntimeStatus(runtime, configPath) {
929
929
  async function ensureLinuxWireGuardRuntime(installDir) {
930
930
  let runtime = (0, electron_core_wireguard_1.resolveWireGuardConnectionRuntime)({
931
931
  installDir,
932
- allowSystemFallback: true,
932
+ allowSystemFallback: false,
933
933
  });
934
934
  if (runtime.available)
935
935
  return runtime;
936
936
  const installed = installLinuxWireGuardTools();
937
937
  runtime = (0, electron_core_wireguard_1.resolveWireGuardConnectionRuntime)({
938
938
  installDir,
939
- allowSystemFallback: true,
939
+ allowSystemFallback: false,
940
940
  });
941
941
  if (runtime.available)
942
942
  return runtime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qpjoy/tunnel-cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Global QPJoy Tunnel CLI for mihomo-client and cross-platform HDO mesh enrollment.",
5
5
  "private": false,
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "access": "public"
23
23
  },
24
24
  "dependencies": {
25
- "@qpjoy/electron-core-wireguard": "^0.1.28"
25
+ "@qpjoy/electron-core-wireguard": "^0.1.29"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.10.7"