3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 14:49:24 +01:00

netconfig: Use CamelCase for IPv6 gateway setting

This commit is contained in:
Tim Kourt 2019-12-10 15:38:36 -08:00 committed by Denis Kenzior
parent 2414a3ae51
commit ac9c87d012

View File

@ -351,7 +351,11 @@ static char *netconfig_ipv6_get_gateway(struct netconfig *netconfig)
switch (netconfig->rtm_v6_protocol) {
case RTPROT_STATIC:
gateway = l_settings_get_string(netconfig->active_settings,
"IPv6", "gateway");
"IPv6", "Gateway");
if (!gateway)
gateway = l_settings_get_string(
netconfig->active_settings,
"IPv6", "gateway");
if (inet_pton(AF_INET6, gateway, &in6_addr) < 1) {
l_error("netconfig: Invalid IPv6 gateway address %s is "