From 92906bcd4b3122f255de7ccfd02cdcb322056528 Mon Sep 17 00:00:00 2001 From: stswangzhiping <59632378+stswangzhiping@users.noreply.github.com> Date: Mon, 16 Mar 2026 10:44:26 +0800 Subject: [PATCH] fix: set AP hotspot password to fixed WPA2 PSK "12345678" Open network was not viable as nmcli generates random password by default. Use a simple fixed password since the AP is only for short-lived provisioning. Made-with: Cursor --- .commitmsg | 9 +++------ lib/network.js | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.commitmsg b/.commitmsg index a53b206..f92650c 100644 --- a/.commitmsg +++ b/.commitmsg @@ -1,7 +1,4 @@ -fix: dnsmasq path detection and WiFi rfkill persistence +fix: set AP hotspot password to fixed WPA2 PSK "12345678" -- dns-hijack.js: replace `which` with multi-path search (/usr/sbin etc.) - since dnsmasq is often not in normal user PATH -- install.sh: auto-enable NetworkManager for WiFi provisioning -- install.sh: unblock WiFi rfkill at install time -- install.sh: create clawd-rfkill.service for persistent boot-time unlock +Open network was not viable as nmcli generates random password by default. +Use a simple fixed password since the AP is only for short-lived provisioning. diff --git a/lib/network.js b/lib/network.js index f5512b6..bbbe2df 100644 --- a/lib/network.js +++ b/lib/network.js @@ -5,7 +5,7 @@ const log = require('./logger'); const AP_SSID_PREFIX = 'ClawBox-'; const AP_IP = '10.42.0.1'; -const AP_PASSWORD = ''; // 开放网络,无密码(配网专用,生命周期短) +const AP_PASSWORD = '12345678'; const AP_IFACE = process.env.CLAWD_WIFI_IFACE || ''; const CON_NAME = 'clawd-hotspot';