diff --git a/src/main.rs b/src/main.rs index 1012ee0..b44c9e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1112,7 +1112,7 @@ async fn main() -> anyhow::Result<()> { .map(|x| { let (host, port) = x.rsplit_once(':').expect("Invalid restrict-to format"); ( - host.trim_matches(&['[', ']']).to_string(), + host.trim_matches(['[', ']']).to_string(), port.parse::().expect("Invalid restrict-to port format"), ) })