From c5579281813762384930095c50eaea1db6374bf5 Mon Sep 17 00:00:00 2001 From: Demmie <2e3s19@gmail.com> Date: Thu, 7 Nov 2024 10:03:12 -0500 Subject: [PATCH] Fix port type in config --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 736e667..92e49b8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -52,7 +52,7 @@ pub fn from_cli() -> anyhow::Result { .args([ arg!(-c --config "Custom config file").value_parser(value_parser!(PathBuf)), arg!(--port "Custom server port") - .value_parser(value_parser!(u32)) + .value_parser(value_parser!(u16)) .default_value(defaults::port().to_string()), #[cfg(not(feature = "bundle"))] arg!(--host "Custom server host")