Browse Source

update ipstack to version 1.0.0

pull/239/head
ssrlive 5 months ago
parent
commit
45d7d38f11
  1. 2
      Cargo.toml
  2. 2
      src/lib.rs

2
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"

2
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);

Loading…
Cancel
Save