Skip to content

Commit 32de79e

Browse files
chore(deps): bump smoltcp from 0.9.1 to 0.10.0 (#1236)
1 parent 88a31fd commit 32de79e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/shadowsocks-service/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ regex = "1.4"
116116

117117
tun = { version = "0.5.5", optional = true, features = ["async"] }
118118
etherparse = { version = "0.13", optional = true }
119-
smoltcp = { version = "0.9", optional = true, default-features = false, features = ["std", "log", "medium-ip", "proto-ipv4", "proto-ipv6", "socket-icmp", "socket-udp", "socket-tcp"] }
119+
smoltcp = { version = "0.10", optional = true, default-features = false, features = ["std", "log", "medium-ip", "proto-ipv4", "proto-ipv6", "socket-icmp", "socket-udp", "socket-tcp"] }
120120

121121
serde = { version = "1.0", features = ["derive"] }
122122
json5 = "0.4"

crates/shadowsocks-service/src/local/tun/tcp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use smoltcp::{
2121
socket::tcp::{Socket as TcpSocket, SocketBuffer as TcpSocketBuffer, State as TcpState},
2222
storage::RingBuffer,
2323
time::{Duration as SmolDuration, Instant as SmolInstant},
24-
wire::{IpAddress, IpCidr, Ipv4Address, Ipv6Address, TcpPacket},
24+
wire::{HardwareAddress, IpAddress, IpCidr, Ipv4Address, Ipv6Address, TcpPacket},
2525
};
2626
use spin::Mutex as SpinMutex;
2727
use tokio::{
@@ -258,9 +258,9 @@ impl TcpTun {
258258

259259
let (mut device, iface_rx, iface_tx, iface_tx_avail) = VirtTunDevice::new(capabilities);
260260

261-
let mut iface_config = InterfaceConfig::default();
261+
let mut iface_config = InterfaceConfig::new(HardwareAddress::Ip);
262262
iface_config.random_seed = rand::random();
263-
let mut iface = Interface::new(iface_config, &mut device);
263+
let mut iface = Interface::new(iface_config, &mut device, SmolInstant::now());
264264
iface.update_ip_addrs(|ip_addrs| {
265265
ip_addrs
266266
.push(IpCidr::new(IpAddress::v4(0, 0, 0, 1), 0))

0 commit comments

Comments
 (0)