diff --git a/composables/server.ts b/composables/server.ts index afdc8f0..d651d9a 100644 --- a/composables/server.ts +++ b/composables/server.ts @@ -23,5 +23,14 @@ export const getServerArgs = () => { if (mainStore.serverConfig.privateMode) { args.push("--private-mode", "true"); } + const networkName = mainStore.serverConfig.privateNetworkName.trim(); + if (networkName) { + args.push("--network-name", networkName); + } + const networkSecret = mainStore.serverConfig.privateNetworkPassword.trim(); + if (networkSecret) { + args.push("--network-secret", networkSecret); + } + return args; }; diff --git a/package.json b/package.json index d2ee8db..0a6cecc 100644 --- a/package.json +++ b/package.json @@ -15,23 +15,23 @@ "@element-plus/nuxt": "1.1.3", "@nuxtjs/tailwindcss": "6.13.2", "@pinia/nuxt": "0.11.1", - "@tauri-apps/api": "2.6.0", - "@tauri-apps/cli": "2.6.2", + "@tauri-apps/api": "2.7.0", + "@tauri-apps/cli": "2.7.1", "@tauri-apps/plugin-cli": "2.4.0", "@tauri-apps/plugin-clipboard-manager": "2.3.0", - "@tauri-apps/plugin-dialog": "2.3.0", - "@tauri-apps/plugin-fs": "2.4.0", + "@tauri-apps/plugin-dialog": "2.3.1", + "@tauri-apps/plugin-fs": "2.4.1", "@tauri-apps/plugin-log": "2.6.0", "@tauri-apps/plugin-shell": "2.3.0", - "@tauri-apps/plugin-window-state": "2.3.0", + "@tauri-apps/plugin-window-state": "2.4.0", "@types/lodash-es": "^4.17.12", "@vitejs/plugin-vue-jsx": "4.1.2", "@vueuse/core": "12.7.0", "archiver": "^7.0.1", - "element-plus": "2.10.3", + "element-plus": "2.10.4", "less": "4.2.1", "lodash-es": "^4.17.21", - "nuxt": "3.17.6", + "nuxt": "3.17.7", "pinia": "3.0.3", "pinia-plugin-persistedstate": "4.4.1", "postcss": "^8.4.38", diff --git a/pages/server.vue b/pages/server.vue index d4d1bde..41f9883 100644 --- a/pages/server.vue +++ b/pages/server.vue @@ -1,5 +1,5 @@