mirror of
https://github.com/mii443/encrypt.git
synced 2025-08-22 15:05:33 +00:00
support external client
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user