From 07f161d9d864624bce7d666ca6505d057b8efa3b Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 18 Nov 2020 10:47:48 +0800 Subject: [PATCH] libconfig: fix ipv6 address configuration key --- libconfig/src/net_settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libconfig/src/net_settings.rs b/libconfig/src/net_settings.rs index 6d6a40f..8939b03 100644 --- a/libconfig/src/net_settings.rs +++ b/libconfig/src/net_settings.rs @@ -51,7 +51,7 @@ pub fn get_adresses(cfg: &Config) -> NetAddresses { ipv4_addr = addr; } #[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")] let ipv6_ll_addr = IpAddress::v6(