diff --git a/Cargo.toml b/Cargo.toml index a67ebdc..3541bc7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ env_logger = "0.11" hashlink = "0.11" hickory-proto = "0.25" httparse = "1" -ipstack = { version = "0.5" } +ipstack = { version = "1" } log = { version = "0.4", features = ["std"] } mimalloc = { version = "0.1", default-features = false, optional = true } percent-encoding = "2" diff --git a/src/lib.rs b/src/lib.rs index dd3a1b6..f770c27 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -233,7 +233,7 @@ where }; let mut ipstack_config = ipstack::IpStackConfig::default(); - ipstack_config.mtu(mtu); + ipstack_config.mtu(mtu)?; let mut tcp_cfg = ipstack::TcpConfig::default(); tcp_cfg.timeout = std::time::Duration::from_secs(args.tcp_timeout); ipstack_config.with_tcp_config(tcp_cfg);