Merge pull request #5196 from menloresearch/fix/add-missing-default-host-ip

fix: add missing default host ip
This commit is contained in:
David 2025-06-04 20:42:32 +07:00 committed by GitHub
commit f97a51b34d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -180,7 +180,7 @@ fn is_valid_host(host: &str, trusted_hosts: &[String]) -> bool {
} else {
host.split(':').next().unwrap_or(host)
};
let default_valid_hosts = ["localhost", "127.0.0.1"];
let default_valid_hosts = ["localhost", "127.0.0.1", "0.0.0.0"];
if default_valid_hosts
.iter()