From b6fa7f62dc80d6a1281bf012d27d7bb9f675e2ac Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Tue, 18 Mar 2025 22:18:01 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/astrbot/dashboard/server.py b/astrbot/dashboard/server.py index 932c2ed4e..70809ab3a 100644 --- a/astrbot/dashboard/server.py +++ b/astrbot/dashboard/server.py @@ -126,6 +126,9 @@ class AstrBotDashboard: logger.info(f"正在启动 WebUI, 监听地址: http://{host}:{port}") + if host == "0.0.0.0": + logger.info("提示: WebUI 将监听所有网络接口,请注意安全。(可在 data/cmd_config.json 中配置 dashboard.host 以修改 host)") + if host not in ["localhost", "127.0.0.1"]: try: ip_addr = get_local_ip_addresses()