Change default port to 8989

This commit is contained in:
Horhik 2021-01-05 15:57:35 +02:00
parent 7803aeab02
commit 7d56d094f1

View file

@ -21,7 +21,7 @@ pub fn listen_client(server_sender: SP) -> io::Result<()> {
async fn connect_to_client(server_sender: SP) -> io::Result<()> { async fn connect_to_client(server_sender: SP) -> io::Result<()> {
let addr = env::args() let addr = env::args()
.nth(1) .nth(1)
.unwrap_or_else(|| "127.0.0.1:8080".to_string()); .unwrap_or_else(|| "127.0.0.1:8989".to_string());
let listener = TcpListener::bind(&addr).await?; let listener = TcpListener::bind(&addr).await?;