From 16d5c8222b1dcb2d4fbf30808d40bf4192a8aac4 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 10 May 2016 08:54:25 +0200 Subject: [PATCH] dns: don't use the global configuration to compute initial hash If the initial hash includes the global configuration, every update attempt will be skipped because the configuration never changes, and resolv.conf will never be updated. Instead, use a NULL global configuration to compute the hash and force an initial update. --- src/dns-manager/nm-dns-manager.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dns-manager/nm-dns-manager.c b/src/dns-manager/nm-dns-manager.c index 9cb8a0f072..7b23244aee 100644 --- a/src/dns-manager/nm-dns-manager.c +++ b/src/dns-manager/nm-dns-manager.c @@ -1593,8 +1593,7 @@ nm_dns_manager_init (NMDnsManager *self) priv->config = g_object_ref (nm_config_get ()); /* Set the initial hash */ - compute_hash (self, nm_config_data_get_global_dns_config (nm_config_get_data (priv->config)), - NM_DNS_MANAGER_GET_PRIVATE (self)->hash); + compute_hash (self, NULL, NM_DNS_MANAGER_GET_PRIVATE (self)->hash); g_signal_connect (G_OBJECT (priv->config), NM_CONFIG_SIGNAL_CONFIG_CHANGED,