3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

netconfig: Use CamelCase for IPv6 DNS setting

This commit is contained in:
Tim Kourt 2019-12-10 15:38:37 -08:00 committed by Denis Kenzior
parent ac9c87d012
commit 1fd794a444

View File

@ -382,12 +382,19 @@ static char **netconfig_ipv6_get_dns(struct netconfig *netconfig, uint8_t proto)
{ {
struct in6_addr in6_addr; struct in6_addr in6_addr;
char **dns_list; char **dns_list;
dns_list = l_settings_get_string_list(netconfig->active_settings,
"IPv6", "DNS", ' ');
if (!dns_list)
dns_list = l_settings_get_string_list(
netconfig->active_settings,
"IPv6", "dns", ' ');
if (dns_list && *dns_list) {
char **p; char **p;
p = dns_list = l_settings_get_string_list(netconfig->active_settings, for (p = dns_list; *p; p++) {
"IPv6", "dns", ' ');
if (dns_list && *dns_list) {
for (; *p; p++) {
if (inet_pton(AF_INET6, *p, &in6_addr) == 1) if (inet_pton(AF_INET6, *p, &in6_addr) == 1)
continue; continue;