Browse Source

Now accepting all incoming IPs

master
Michael Preisach 7 years ago
parent
commit
accaf16ba9
  1. 2
      src/main.rs

2
src/main.rs

@ -35,7 +35,7 @@ fn handle_connection(stream: TcpStream) -> Result<()> {
} }
fn main() -> Result<()> { fn main() -> Result<()> {
let address = "127.0.0.1:8000"; let address = "0.0.0.0:8000";
let listener = TcpListener::bind(address).expect("could not start server"); let listener = TcpListener::bind(address).expect("could not start server");
// accept connections and get a TcpStream // accept connections and get a TcpStream

Loading…
Cancel
Save