Server Now Listens on Every Interface.

'::' is needed to listen on all interfaces.
'::1' listens only on local interface.
This commit is contained in:
CodeSteak 2019-06-03 16:55:40 +02:00
parent c36d81aa92
commit c26a1b80f1
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ fn main() -> std::io::Result<()> {
let network_conf = ProtocolConfig::default();
println!(
"listening on {}:{}",
"listening on {} : {}",
network_conf.listen_addr, network_conf.port
);

View File

@ -67,7 +67,7 @@ impl Default for ProtocolConfig {
port: 10796,
read_timeout_s: 60,
write_timeout_s: 75,
listen_addr: "::1".to_owned(),
listen_addr: "::".to_owned(),
}
}
}