mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-14 19:01:28 +03:00
Default port now 4242 everywhere (#14)
This commit is contained in:
committed by
GitHub
parent
f0d70492c5
commit
b74f1b4291
@@ -8,6 +8,8 @@ use toml;
|
||||
|
||||
use crate::client::Position;
|
||||
|
||||
pub const DEFAULT_PORT: u16 = 4242;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct ConfigToml {
|
||||
pub port: Option<u16>,
|
||||
@@ -86,8 +88,6 @@ impl Config {
|
||||
backend => backend,
|
||||
};
|
||||
|
||||
const DEFAULT_PORT: u16 = 4242;
|
||||
|
||||
let port = match find_arg("--port")? {
|
||||
Some(port) => port.parse::<u16>()?,
|
||||
None => match &config_toml {
|
||||
|
||||
Reference in New Issue
Block a user