Captive portal, regression in merging b54f3d2cc4

ref https://forum.opnsense.org/index.php?topic=14186
This commit is contained in:
Ad Schellevis 2019-09-12 20:37:59 +02:00
parent 42e2dcd20e
commit 2a72b99a9d

View File

@ -75,7 +75,6 @@ class IPFW(object):
:param address: ip address or net to add to table
:return:
"""
subprocess.run(['/sbin/ipfw', 'table', str(table_number), 'add', address], capture_output=True)
ipfw_tbl = self.list_table(table_number)
rule_number = str(self._add_accounting(address))
if address not in ipfw_tbl: