Bind to all interfaces

This commit is contained in:
William Brawner 2022-07-27 21:18:43 -06:00
parent 9f17d6c2e1
commit 6e6edfa2bd

View file

@ -15,7 +15,7 @@ use telnet::Event;
use telnet::Telnet;
fn main() {
let listener = TcpListener::bind("127.0.0.1:4762").unwrap();
let listener = TcpListener::bind("0.0.0.0:4762").unwrap();
let pool = ThreadPool::new(4);
for stream in listener.incoming() {
match stream {