diff options
| author | Daniil Baturin <daniil@vyos.io> | 2026-08-15 17:08:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-15 17:08:48 +0100 |
| commit | 32f3ce2d951e30335dc6216e3759d7c1fcef4832 (patch) | |
| tree | df232f7376f87db911913e0a5c6ef0e612c76a96 /python | |
| parent | 84906d5a12d4faeffc98f998fdd7eb00934d9ee2 (diff) | |
| parent | 53083d91e918398ccaaea05556371c9417cbcac2 (diff) | |
| download | vyos-1x-32f3ce2d951e30335dc6216e3759d7c1fcef4832.tar.gz vyos-1x-32f3ce2d951e30335dc6216e3759d7c1fcef4832.zip | |
Merge pull request #5406 from c-po/fix-firewall
firewall: T9210: bugfix in fqdn_resolve() exception handling
Diffstat (limited to 'python')
| -rwxr-xr-x | python/vyos/firewall.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/python/vyos/firewall.py b/python/vyos/firewall.py index b8356717f..729af8c57 100755 --- a/python/vyos/firewall.py +++ b/python/vyos/firewall.py @@ -16,7 +16,6 @@ import re from socket import AF_INET from socket import AF_INET6 -from socket import gaierror from socket import getaddrinfo from vyos.template import is_ipv4 @@ -80,7 +79,7 @@ def fqdn_resolve(fqdn, ipv6=False): try: res = getaddrinfo(fqdn, None, AF_INET6 if ipv6 else AF_INET) return set(item[4][0] for item in res) - except gaierror: + except OSError: return None def find_nftables_rule(table, chain, rule_matches=[]): |
