diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -27,10 +27,10 @@ pub fn app(config: Config) -> Router { pub async fn run() -> Result<()> { let args = Cli::parse(); - let config = config::Config::new()?; - match args.command { - Command::Serv => { + Command::Serv(args) => { + let config = config::Config::new(args)?; + let socket = SocketAddr::new(IpAddr::V6(Ipv6Addr::UNSPECIFIED), config.port); let listener = TcpListener::bind(socket).await?; |
