From c03eb2b999057bbf8061e35d10cb5fe5f4d5f75e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 24 Apr 2026 03:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Sync=202026-04-24=2003:51:26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../htdocs/luci-static/resources/view/network/onekeyap.js | 6 +++--- luci-app-onekeyap/root/usr/libexec/onekeyap | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/luci-app-onekeyap/htdocs/luci-static/resources/view/network/onekeyap.js b/luci-app-onekeyap/htdocs/luci-static/resources/view/network/onekeyap.js index 328d7909..a38e82e7 100644 --- a/luci-app-onekeyap/htdocs/luci-static/resources/view/network/onekeyap.js +++ b/luci-app-onekeyap/htdocs/luci-static/resources/view/network/onekeyap.js @@ -40,7 +40,7 @@ return view.extend({ throw new Error(res.message || _('Switching failed')); ui.addNotification(null, E('p', [ - res.message || _('The switch request has been submitted. The page will refresh in a few seconds. If the address changes, you can still use 192.168.0.1.') + res.message || _('The switch request has been submitted. The page will refresh in a few seconds. If the address changes, you can still use 10.0.0.1.') ])); window.setTimeout(function() { @@ -63,12 +63,12 @@ return view.extend({ var savedLanPorts = (this.status.saved_lan_ports || []).join(', '); var savedWanPorts = (this.status.saved_wan_ports || []).join(', '); var currentIps = (this.status.current_lan_ipv4 || []).join(', '); - var fallbackIp = this.status.fallback_ip || '192.168.0.1/24'; + var fallbackIp = this.status.fallback_ip || '10.0.0.1/24'; return E('div', { 'class': 'cbi-map' }, [ E('h2', [ _('One-Key AP Mode') ]), E('div', { 'class': 'cbi-map-descr' }, [ - _('Merge current WAN ports into LAN with one click. In AP mode, LAN becomes a DHCP client while keeping 192.168.0.1/24 as a fallback management address.') + _('Merge current WAN ports into LAN with one click. In AP mode, LAN becomes a DHCP client while keeping 10.0.0.1/24 as a fallback management address.') ]), E('div', { 'class': 'cbi-section' }, [ this.renderValue(_('Current Mode'), modeText), diff --git a/luci-app-onekeyap/root/usr/libexec/onekeyap b/luci-app-onekeyap/root/usr/libexec/onekeyap index 61113cf0..e2a6d426 100755 --- a/luci-app-onekeyap/root/usr/libexec/onekeyap +++ b/luci-app-onekeyap/root/usr/libexec/onekeyap @@ -34,7 +34,7 @@ ensure_state() { uci batch <<-EOF >/dev/null set ${STATE_CONFIG}.${STATE_SECTION}=settings set ${STATE_CONFIG}.${STATE_SECTION}.mode='router' - set ${STATE_CONFIG}.${STATE_SECTION}.fallback_ip='192.168.0.1' + set ${STATE_CONFIG}.${STATE_SECTION}.fallback_ip='10.0.0.1' set ${STATE_CONFIG}.${STATE_SECTION}.fallback_mask='255.255.255.0' set ${STATE_CONFIG}.${STATE_SECTION}.fallback_cidr='24' EOF @@ -323,7 +323,7 @@ status() { fallback_ip="$(state_get fallback_ip)" fallback_cidr="$(state_get fallback_cidr)" - [ -n "${fallback_ip}" ] || fallback_ip="192.168.0.1" + [ -n "${fallback_ip}" ] || fallback_ip="10.0.0.1" [ -n "${fallback_cidr}" ] || fallback_cidr="24" current_lan_ports="$(get_lan_ports)" @@ -432,7 +432,7 @@ enable_ap() { schedule_reload ap - reply_json 0 "ap" "AP 模式切换请求已提交,WAN 口会并入 LAN,并保留 192.168.0.1/24 作为保底地址。" + reply_json 0 "ap" "AP 模式切换请求已提交,WAN 口会并入 LAN,并保留 10.0.0.1/24 作为保底地址。" } enable_router() {