feat: 更新网关配置,将主机地址从 "0.0.0.0" 修改为 "127.0.0.1"
This commit is contained in:
parent
cf1152571d
commit
99b6f54f67
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user