feat: 更新网关配置,将主机地址从 "0.0.0.0" 修改为 "127.0.0.1"

This commit is contained in:
ooodc 2026-06-06 16:00:34 +08:00
parent cf1152571d
commit 99b6f54f67

View File

@ -1038,7 +1038,7 @@ mod tests {
} }
}, },
"gateway": { "gateway": {
"host": "0.0.0.0", "host": "127.0.0.1",
"port": 19876, "port": 19876,
"agent_prompt_reinject_every": 120 "agent_prompt_reinject_every": 120
} }
@ -1139,7 +1139,7 @@ mod tests {
fn test_default_gateway_config() { fn test_default_gateway_config() {
let file = write_test_config(); let file = write_test_config();
let config = Config::load(file.path().to_str().unwrap()).unwrap(); 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_eq!(config.gateway.port, 19876);
assert!(!config.gateway.show_tool_results); assert!(!config.gateway.show_tool_results);
assert_eq!(config.gateway.agent_prompt_reinject_every, 120); assert_eq!(config.gateway.agent_prompt_reinject_every, 120);