/* Enable new servers by default */
data->enabled = TRUE;
+ connman_info("Adding DNS server %s", data->server);
+
return data;
}
g_io_channel_unref(data->channel);
+ connman_info("Removing DNS server %s", data->server);
+
g_free(data->server);
g_free(data->domain);
g_free(data->interface);
for (list = server_list; list; list = list->next) {
struct server_data *data = list->data;
- data->enabled = enabled ? FALSE : TRUE;
+ if (enabled == FALSE) {
+ connman_info("Enabling DNS server %s", data->server);
+ data->enabled = TRUE;
+ } else {
+ connman_info("Disabling DNS server %s", data->server);
+ data->enabled = FALSE;
+ }
}
}
for (list = server_list; list; list = list->next) {
struct server_data *data = list->data;
- if (g_strcmp0(data->interface, interface) == 0)
+ if (g_strcmp0(data->interface, interface) == 0) {
+ connman_info("Enabling DNS server %s", data->server);
data->enabled = TRUE;
- else
+ } else {
+ connman_info("Disabling DNS server %s", data->server);
data->enabled = FALSE;
+ }
}
g_free(interface);