fix: add missing default host ip

This commit is contained in:
David 2025-06-04 20:08:41 +07:00
parent cb3ac4b136
commit 534a673c51

View File

@ -180,7 +180,7 @@ fn is_valid_host(host: &str, trusted_hosts: &[String]) -> bool {
} else { } else {
host.split(':').next().unwrap_or(host) 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 if default_valid_hosts
.iter() .iter()