listen on IPv6 localhost by default

this is dual-stack by default on linux, resolves
issues with nginx using `localhost` and randomly
choosing between 127.0.0.1 and [::1], causing
intermittent upstream issues

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-05-26 14:46:35 -04:00 committed by June 🍓🦴
parent 68fffe8e96
commit b822e3a94c

View file

@ -1,7 +1,7 @@
use std::{
collections::BTreeMap,
fmt::{self, Write as _},
net::{IpAddr, Ipv4Addr, SocketAddr},
net::{IpAddr, Ipv6Addr, SocketAddr},
path::PathBuf,
};
@ -875,7 +875,7 @@ impl fmt::Display for Config {
fn true_fn() -> bool { true }
fn default_address() -> IpAddr { Ipv4Addr::LOCALHOST.into() }
fn default_address() -> IpAddr { Ipv6Addr::LOCALHOST.into() }
fn default_port() -> ListeningPort {
ListeningPort {