From 45d7d38f11dc0fcf82f6c1fb3124b0c1dcd23c39 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:51:12 +0800 Subject: [PATCH] update ipstack to version 1.0.0 --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);