Bind to all interfaces
This commit is contained in:
parent
9f17d6c2e1
commit
6e6edfa2bd
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue