mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-09 18:31:29 +03:00
Default port now 4242 everywhere (#14)
This commit is contained in:
committed by
GitHub
parent
f0d70492c5
commit
b74f1b4291
@@ -1,6 +1,6 @@
|
||||
use std::{net::SocketAddr, error::Error, fmt::Display, sync::{Arc, atomic::{AtomicBool, Ordering, AtomicU32}, RwLock}};
|
||||
|
||||
use crate::{config, dns};
|
||||
use crate::{config::{self, DEFAULT_PORT}, dns};
|
||||
|
||||
#[derive(Eq, Hash, PartialEq, Clone, Copy)]
|
||||
pub enum Position {
|
||||
@@ -56,7 +56,7 @@ impl ClientManager {
|
||||
None => return Err(Box::new(ClientConfigError{})),
|
||||
},
|
||||
};
|
||||
let addr = SocketAddr::new(ip, client.port.unwrap_or(2020));
|
||||
let addr = SocketAddr::new(ip, client.port.unwrap_or(DEFAULT_PORT));
|
||||
self.register_client(addr, pos);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user