mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
parent
229ba9fd57
commit
413b05ccac
@ -575,8 +575,7 @@ void dns_server_warn_downgrade(DnsServer *server) {
|
||||
server->warned_downgrade = true;
|
||||
}
|
||||
|
||||
bool dns_server_limited_domains(DnsServer *server)
|
||||
{
|
||||
bool dns_server_limited_domains(DnsServer *server) {
|
||||
DnsSearchDomain *domain;
|
||||
bool domain_restricted = false;
|
||||
|
||||
@ -589,7 +588,7 @@ bool dns_server_limited_domains(DnsServer *server)
|
||||
if (domain->route_only) {
|
||||
domain_restricted = true;
|
||||
/* ~. means "any domain", thus it is a global server */
|
||||
if (streq(DNS_SEARCH_DOMAIN_NAME(domain), "."))
|
||||
if (dns_name_is_root(DNS_SEARCH_DOMAIN_NAME(domain)))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user