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:
parent
68fffe8e96
commit
b822e3a94c
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue