fix: captive portal 改用 IP 地址 10.42.0.1 替代域名
Made-with: Cursor
This commit is contained in:
@@ -137,8 +137,7 @@ Claw Box 是无屏设备,通过 WiFi 热点完成网络配置。
|
||||
连接成功后,手机通常会**自动弹出配网页面**。
|
||||
|
||||
如果没有弹出,请手动打开浏览器访问:
|
||||
- `http://ap.cutos.ai`
|
||||
- 或 `http://10.42.0.1`
|
||||
- `http://10.42.0.1`
|
||||
|
||||
**第四步:选择 WiFi 并连接**
|
||||
|
||||
|
||||
@@ -207,10 +207,8 @@ MemoryMax=256M
|
||||
CPUQuota=50%
|
||||
TasksMax=64
|
||||
|
||||
# 安全加固
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=read-only
|
||||
# 安全加固(ttyd 子进程需要 setuid sudo,不能用 NoNewPrivileges/strict)
|
||||
ProtectSystem=full
|
||||
ReadWritePaths=$CONFIG_DIR /tmp
|
||||
|
||||
# 日志
|
||||
|
||||
@@ -4,7 +4,7 @@ const fs = require('fs');
|
||||
const path = require('path');
|
||||
const log = require('./logger');
|
||||
|
||||
const CAPTIVE_DOMAIN = 'ap.cutos.ai';
|
||||
const CAPTIVE_DOMAIN = '10.42.0.1';
|
||||
|
||||
const NM_DNSMASQ_DIR = '/etc/NetworkManager/dnsmasq-shared.d';
|
||||
const CAPTIVE_CONF = path.join(NM_DNSMASQ_DIR, 'clawd-captive.conf');
|
||||
|
||||
@@ -146,7 +146,7 @@ class ProvisionManager extends EventEmitter {
|
||||
|
||||
this._state = 'ap';
|
||||
log.info('provision', `AP 常驻模式已启动: ${ap.ssid}, 密码 12345678`);
|
||||
log.info('provision', `配网地址: http://ap.cutos.ai`);
|
||||
log.info('provision', `配网地址: http://10.42.0.1`);
|
||||
} catch (e) {
|
||||
log.error('provision', `AP 启动失败: ${e.message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user