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:
parent
ac9c87d012
commit
1fd794a444
@ -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;
|
||||||
char **p;
|
|
||||||
|
|
||||||
p = dns_list = l_settings_get_string_list(netconfig->active_settings,
|
dns_list = l_settings_get_string_list(netconfig->active_settings,
|
||||||
"IPv6", "dns", ' ');
|
"IPv6", "DNS", ' ');
|
||||||
|
|
||||||
|
if (!dns_list)
|
||||||
|
dns_list = l_settings_get_string_list(
|
||||||
|
netconfig->active_settings,
|
||||||
|
"IPv6", "dns", ' ');
|
||||||
|
|
||||||
if (dns_list && *dns_list) {
|
if (dns_list && *dns_list) {
|
||||||
for (; *p; p++) {
|
char **p;
|
||||||
|
|
||||||
|
for (p = dns_list; *p; p++) {
|
||||||
if (inet_pton(AF_INET6, *p, &in6_addr) == 1)
|
if (inet_pton(AF_INET6, *p, &in6_addr) == 1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user