From 3411f92c3d218b6533045369329be80b11ac6d69 Mon Sep 17 00:00:00 2001 From: jiesen Date: Sun, 21 Dec 2025 01:23:43 +0700 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE:=20=E9=99=90=E5=88=B6=20TLS?= =?UTF-8?q?=20=E4=B8=8E=E8=BF=9C=E7=A8=8B=E7=AE=A1=E7=90=86=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/RemoteManagementSettings.tsx | 20 +++++++++++++------ src/components/settings/TlsSettings.tsx | 14 ++++++++++--- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/components/settings/RemoteManagementSettings.tsx b/src/components/settings/RemoteManagementSettings.tsx index 78c9c4c0f..ce8f347a7 100644 --- a/src/components/settings/RemoteManagementSettings.tsx +++ b/src/components/settings/RemoteManagementSettings.tsx @@ -90,6 +90,11 @@ export function RemoteManagementSettings() { const rm = config.remote_management; const isEnabled = Boolean(rm.secret_key && rm.secret_key.length > 0); const remoteAccessSupported = false; + const allowRemoteToggleEnabled = remoteAccessSupported && isEnabled; + const allowRemoteToggleDisabled = + !allowRemoteToggleEnabled && !rm.allow_remote; + const remoteAccessUnsupportedEnabled = + rm.allow_remote && !remoteAccessSupported; return (
@@ -187,7 +192,7 @@ export function RemoteManagementSettings() { {/* 允许远程访问 */}