Server Now Listens on Every Interface.
'::' is needed to listen on all interfaces. '::1' listens only on local interface.
This commit is contained in:
parent
c36d81aa92
commit
c26a1b80f1
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue