support external client

This commit is contained in:
Masato Imai
2022-07-22 15:33:40 +09:00
parent 6856108c3f
commit c6888e8ab2

View File

@ -79,7 +79,7 @@ struct Args {
}
fn listen_tcp_server(port: u16) -> TcpStream {
let listener = TcpListener::bind(format!("localhost:{}", port)).unwrap();
let listener = TcpListener::bind(format!("0.0.0.0:{}", port)).unwrap();
for stream in listener.incoming() {
match stream {
Ok(stream) => {