mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
Firewall/Alias - list_table returning empty ('') addresses. reintroduced https://github.com/opnsense/core/issues/5788 accidentally
This commit is contained in:
parent
4bc36a4860
commit
e2dada5783
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user