fix: captive portal 改用 IP 地址 10.42.0.1 替代域名
Made-with: Cursor
This commit is contained in:
@@ -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