mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
netconfig: Use CamelCase for IPv6 gateway setting
This commit is contained in:
parent
2414a3ae51
commit
ac9c87d012
@ -351,7 +351,11 @@ static char *netconfig_ipv6_get_gateway(struct netconfig *netconfig)
|
|||||||
switch (netconfig->rtm_v6_protocol) {
|
switch (netconfig->rtm_v6_protocol) {
|
||||||
case RTPROT_STATIC:
|
case RTPROT_STATIC:
|
||||||
gateway = l_settings_get_string(netconfig->active_settings,
|
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) {
|
if (inet_pton(AF_INET6, gateway, &in6_addr) < 1) {
|
||||||
l_error("netconfig: Invalid IPv6 gateway address %s is "
|
l_error("netconfig: Invalid IPv6 gateway address %s is "
|
||||||
|
Loading…
Reference in New Issue
Block a user