1
0
Fork 0

libconfig: fix ipv6 address configuration key

This commit is contained in:
Sebastien Bourdeauducq 2020-11-18 10:47:48 +08:00
parent ef160aa841
commit 07f161d9d8
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ pub fn get_adresses(cfg: &Config) -> NetAddresses {
ipv4_addr = addr; ipv4_addr = addr;
} }
#[cfg(feature = "ipv6")] #[cfg(feature = "ipv6")]
let ipv6_addr = cfg.read_str("ipv6").ok().and_then(|s| s.parse().ok()); let ipv6_addr = cfg.read_str("ip6").ok().and_then(|s| s.parse().ok());
#[cfg(feature = "ipv6")] #[cfg(feature = "ipv6")]
let ipv6_ll_addr = IpAddress::v6( let ipv6_ll_addr = IpAddress::v6(