mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
Firewall/alias, ignore namelookup when no nameservers are configured
https://forum.opnsense.org/index.php?topic=9103.0
This commit is contained in:
parent
a7846bdaba
commit
aa215fcbdb
@ -117,7 +117,7 @@ class Alias(object):
|
||||
try:
|
||||
for rdata in self._dnsResolver.query(address, record_type):
|
||||
yield str(rdata)
|
||||
except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN, dns.exception.Timeout):
|
||||
except (dns.resolver.NoAnswer, dns.resolver.NXDOMAIN, dns.exception.Timeout, dns.resolver.NoNameservers):
|
||||
pass
|
||||
|
||||
def _fetch_url(self, url):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user