Firewall/Alias - list_table returning empty ('') addresses. reintroduced https://github.com/opnsense/core/issues/5788 accidentally

This commit is contained in:
Ad Schellevis 2023-03-29 20:21:00 +02:00
parent 4bc36a4860
commit e2dada5783

View File

@ -38,7 +38,9 @@ class PF:
def list_table(table_name):
pfctl_cmd = ['/sbin/pfctl', '-t', table_name, '-T', 'show']
for line in subprocess.run(pfctl_cmd, capture_output=True, text=True).stdout.split('\n'):
yield line.strip()
tmp = line.strip()
if len(tmp) > 0:
yield tmp
@staticmethod
def flush_network(table_name, ifname):