From b7eff2037f80e43301cef1ae9567f50fd94a40ff Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 29 Aug 2018 20:04:18 +1000 Subject: [PATCH] 40k --- cryps-rs/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cryps-rs/src/main.rs b/cryps-rs/src/main.rs index d42ec8a7..c6cecc2a 100755 --- a/cryps-rs/src/main.rs +++ b/cryps-rs/src/main.rs @@ -13,7 +13,7 @@ //! //! and in another terminal you can run: //! -//! cargo run --example connect 127.0.0.1:8080 +//! cargo run --example connect 127.0.0.1:40000 //! //! Each line you type in to the `connect` terminal should be echo'd back to //! you! If you open up multiple terminals running the `connect` example you @@ -33,8 +33,8 @@ use std::net::SocketAddr; fn main() { // Allow passing an address to listen on as the first argument of this // program, but otherwise we'll just set up our TCP listener on - // 127.0.0.1:8080 for connections. - let addr = env::args().nth(1).unwrap_or("127.0.0.1:8080".to_string()); + // 127.0.0.1:40000 for connections. + let addr = env::args().nth(1).unwrap_or("0.0.0.0:40000".to_string()); let addr = addr.parse::().unwrap(); // Next up we create a TCP listener which will listen for incoming