We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c337e4e commit c550cdfCopy full SHA for c550cdf
crates/shadowsocks-service/src/config.rs
@@ -1625,6 +1625,17 @@ impl Config {
1625
}
1626
1627
1628
+ #[cfg(feature = "local-tun")]
1629
+ if let Some(tun_interface_destination) = local.tun_interface_destination {
1630
+ match tun_interface_destination.parse::<IpNet>() {
1631
+ Ok(addr) => local_config.tun_interface_destination = Some(addr),
1632
+ Err(..) => {
1633
+ let err = Error::new(ErrorKind::Malformed, "`tun_interface_destination` invalid", None);
1634
+ return Err(err);
1635
+ }
1636
1637
1638
+
1639
#[cfg(feature = "local-tun")]
1640
if let Some(tun_interface_name) = local.tun_interface_name {
1641
local_config.tun_interface_name = Some(tun_interface_name);
0 commit comments