From 99b6f54f67cc9095a78aaa76c3c786bfbd8e2a2d Mon Sep 17 00:00:00 2001 From: ooodc <549496103@qq.com> Date: Sat, 6 Jun 2026 16:00:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=B0=86=E4=B8=BB=E6=9C=BA=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=BB=8E=20"0.0.0.0"=20=E4=BF=AE=E6=94=B9=E4=B8=BA=20?= =?UTF-8?q?"127.0.0.1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/mod.rs b/src/config/mod.rs index b8da547..c4cc9ad 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -1038,7 +1038,7 @@ mod tests { } }, "gateway": { - "host": "0.0.0.0", + "host": "127.0.0.1", "port": 19876, "agent_prompt_reinject_every": 120 } @@ -1139,7 +1139,7 @@ mod tests { fn test_default_gateway_config() { let file = write_test_config(); let config = Config::load(file.path().to_str().unwrap()).unwrap(); - assert_eq!(config.gateway.host, "0.0.0.0"); + assert_eq!(config.gateway.host, "127.0.0.1"); assert_eq!(config.gateway.port, 19876); assert!(!config.gateway.show_tool_results); assert_eq!(config.gateway.agent_prompt_reinject_every, 120);