fixed server adress

This commit is contained in:
Phuntsok Drak-pa 2018-03-21 12:27:58 +00:00
parent e35e75ea22
commit 5de131064f

View File

@ -13,7 +13,7 @@ fn main() {
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
println!("Opening server on port {}", args[1]); println!("Opening server on port {}", args[1]);
// serveur(args[1].clone()); // serveur(args[1].clone());
let mut serv = String::from("127.0.0.1:"); let mut serv = String::from("0.0.0.0:");
serv.push_str(&args[1]); serv.push_str(&args[1]);
server::serveur(serv); server::serveur(serv);
} else if args.len() == 3 { } else if args.len() == 3 {