3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +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,6 +351,10 @@ 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");
if (!gateway)
gateway = l_settings_get_string(
netconfig->active_settings,
"IPv6", "gateway");
if (inet_pton(AF_INET6, gateway, &in6_addr) < 1) {