From bd87ee1628c5ad53ed7668d3be613265dd9119a7 Mon Sep 17 00:00:00 2001 From: KaranGauswami Date: Sun, 23 Jun 2024 17:08:45 +0530 Subject: [PATCH] added support for ipv6 listen ip --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index f76d70e..a28a811 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,7 +6,7 @@ use sthp::proxy_request; use tracing::{error, info}; use tracing_subscriber::EnvFilter; -use std::net::{Ipv4Addr, SocketAddr, ToSocketAddrs}; +use std::net::{IpAddr, SocketAddr, ToSocketAddrs}; use base64::engine::general_purpose; use base64::Engine; @@ -39,7 +39,7 @@ struct Cli { port: u16, #[arg(long, default_value = "0.0.0.0")] - listen_ip: Ipv4Addr, + listen_ip: IpAddr, #[command(flatten)] auth: Option,