mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
captive portal: note can be removed
This commit is contained in:
parent
8bd35fe138
commit
4eca08abb7
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user