summaryrefslogtreecommitdiff
path: root/src/dnsmasq
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-11-29 08:51:36 +0100
committerThomas Haller <thaller@redhat.com>2018-11-29 14:20:24 +0100
commit803514df27f647df49023f86be2326676715e2f8 (patch)
tree6a8f480d7f08302c19f1775114d3019472ccafc6 /src/dnsmasq
parenta8f0da9f91d30f95d6d542f0ad53e725f6e30fbb (diff)
dnsmasq/shared: fix setting DNS nameserver and search for shared dnsmasq
Diffstat (limited to 'src/dnsmasq')
-rw-r--r--src/dnsmasq/nm-dnsmasq-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dnsmasq/nm-dnsmasq-manager.c b/src/dnsmasq/nm-dnsmasq-manager.c
index 098894415c..3fe2f48926 100644
--- a/src/dnsmasq/nm-dnsmasq-manager.c
+++ b/src/dnsmasq/nm-dnsmasq-manager.c
@@ -235,6 +235,7 @@ create_dm_cmd_line (const char *iface,
g_string_append_c (s, ',');
g_string_append (s, nm_utils_inet4_ntop (nm_ip4_config_get_nameserver (ip4_config, i), tmpaddr));
}
+ nm_cmd_line_add_string (cmd, s->str);
g_string_truncate (s, 0);
}
@@ -244,6 +245,7 @@ create_dm_cmd_line (const char *iface,
g_string_append_c (s, ',');
g_string_append (s, nm_ip4_config_get_search (ip4_config, i));
}
+ nm_cmd_line_add_string (cmd, s->str);
g_string_truncate (s, 0);
}