Skip to content

Commit 94c0971

Browse files
committed
fix(local-tun): Linux tun_config.platform_config
1 parent 99f1f92 commit 94c0971

File tree

1 file changed

+1
-1
lines changed
  • crates/shadowsocks-service/src/local/tun

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl TunBuilder {
109109
self.tun_config.layer(Layer::L3).up();
110110

111111
#[cfg(target_os = "linux")]
112-
self.tun_config.platform(|tun_config| {
112+
self.tun_config.platform_config(|tun_config| {
113113
// IFF_NO_PI preventing excessive buffer reallocating
114114
tun_config.packet_information(false);
115115
});

0 commit comments

Comments
 (0)