bind to ipv6 too
This commit is contained in:
parent
331a84627a
commit
463c3d98f5
12
src/main.rs
12
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,
|
||||
))?
|
||||
|
|
Loading…
Reference in a new issue