While transitioning from state 'ready' to 'online' or back, search
domains and/or servers are already in the list of DNS servers and
search domains and must not be re-added. When that happens, update
the DNS proxy code with the existing search domain or server.
---
src/resolver.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/resolver.c b/src/resolver.c
index 67c3f47..01e7c0e 100644
--- a/src/resolver.c
+++ b/src/resolver.c
@@ -429,8 +429,13 @@ int connman_resolver_append(int index, const char *domain,
if (entry->index == index &&
g_strcmp0(entry->domain, domain) == 0 &&
- g_strcmp0(entry->server, server) == 0)
+ g_strcmp0(entry->server, server) == 0) {
+ if (dnsproxy_enabled)
+ __connman_dnsproxy_append(entry->index, domain,
+ server);
+
return -EEXIST;
+ }
}
return append_resolver(index, domain, server, 0, 0);
--
1.9.1
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman