diff --git a/src/main.rs b/src/main.rs index e38e0b5..4fca1e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -216,9 +216,17 @@ async fn main() -> std::io::Result<()> { }) .bind(( if reverse_proxy { - "127.0.0.1" + std::net::Ipv4Addr::LOCALHOST } else { - "0.0.0.0" + std::net::Ipv4Addr::UNSPECIFIED + }, + port, + ))? + .bind(( + if reverse_proxy { + std::net::Ipv6Addr::LOCALHOST + } else { + std::net::Ipv6Addr::UNSPECIFIED }, port, ))?