mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-01-23 02:14:26 +00:00
Add dummy functions for IPTables
This commit is contained in:
parent
27760ca6b6
commit
2ae7a276bf
1 changed files with 9 additions and 0 deletions
|
|
@ -7,6 +7,15 @@ class IPTables:
|
|||
self.chain_name = chain_name
|
||||
self.logger = logger
|
||||
|
||||
def isIPBanned(self, net, family):
|
||||
return False
|
||||
|
||||
def isIPv4Banned(self,net):
|
||||
return False
|
||||
|
||||
def isIPv6Banned(self,net):
|
||||
return False
|
||||
|
||||
def initChainIPv4(self):
|
||||
if not iptc.Chain(iptc.Table(iptc.Table.FILTER), self.chain_name) in iptc.Table(iptc.Table.FILTER).chains:
|
||||
iptc.Table(iptc.Table.FILTER).create_chain(self.chain_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue