mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 22:30:19 +01:00
dns: dnsmasq: fix adding multiple domains
Fixes:e91f1a7d2a(cherry picked from commit14b6e330e2)
This commit is contained in:
parent
7d4c7e73df
commit
6a0e5fdd47
1 changed files with 1 additions and 1 deletions
|
|
@ -258,8 +258,8 @@ add_ip_config (NMDnsDnsmasq *self,
|
|||
if (n == 0) {
|
||||
/* If not searches, use any domains */
|
||||
n = nm_ip_config_get_num_domains (ip_config);
|
||||
domain = nm_utils_parse_dns_domain (nm_ip_config_get_domain (ip_config, i), NULL);
|
||||
for (i = 0; i < n; i++) {
|
||||
domain = nm_utils_parse_dns_domain (nm_ip_config_get_domain (ip_config, i), NULL);
|
||||
add_dnsmasq_nameserver (self,
|
||||
servers,
|
||||
ip_addr_to_string_buf,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue