mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Improve "no upstream servers configured" when D-Bus is enabled
Print a specific INFO message instead of a generic WARNING message, so users know what to do. Starting dnsmasq without upstream servers indicates a problem by default, but is perfectly normal with D-Bus enabled. For example, NetworkManager starts dnsmasq with no upstream servers, then immediately populates it over D-Bus.
This commit is contained in:
committed by
Simon Kelley
parent
b7156116c2
commit
c72c895869
@@ -962,7 +962,14 @@ int main (int argc, char **argv)
|
|||||||
my_syslog(LOG_WARNING, _("warning: ignoring resolv-file flag because no-resolv is set"));
|
my_syslog(LOG_WARNING, _("warning: ignoring resolv-file flag because no-resolv is set"));
|
||||||
daemon->resolv_files = NULL;
|
daemon->resolv_files = NULL;
|
||||||
if (!daemon->servers)
|
if (!daemon->servers)
|
||||||
my_syslog(LOG_WARNING, _("warning: no upstream servers configured"));
|
{
|
||||||
|
#ifdef HAVE_DBUS
|
||||||
|
if (option_bool(OPT_DBUS))
|
||||||
|
my_syslog(LOG_INFO, _("no upstream servers configured - please set them from DBus"));
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
my_syslog(LOG_WARNING, _("warning: no upstream servers configured"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (daemon->max_logs != 0)
|
if (daemon->max_logs != 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user