captive portal: note can be removed

This commit is contained in:
Stephan de Wit 2025-03-19 14:40:13 +01:00
parent 8bd35fe138
commit 4eca08abb7

View File

@ -47,7 +47,6 @@ class PF(object):
@staticmethod
def remove_from_table(zoneid, address):
# XXX: capture output should be true
subprocess.run(['/sbin/pfctl', '-t', f'__captiveportal_zone_{zoneid}', '-T', 'del', address], capture_output=True)
# kill associated states to and from this host
subprocess.run(['/sbin/pfctl', '-k', f'{address}'], capture_output=True)