use system SocketAddr value

This commit is contained in:
yggverse 2025-09-08 14:42:52 +03:00
parent b157171cc5
commit fea85909cd

View file

@ -5,7 +5,7 @@ use std::path::PathBuf;
#[command(version, about, long_about = None)]
pub struct Argument {
/// Bind server `host:port` to listen incoming connections on it
#[arg(short, long, default_value_t = String::from("127.0.0.1:1965"))]
#[arg(short, long, default_value_t = std::net::SocketAddrV4::new(std::net::Ipv4Addr::LOCALHOST, 1965).to_string())]
pub bind: String,
/// Filepath to server identity in PKCS (PFX) format