Skip to content

Commit

Permalink
Fixed ipset module to reflect the latest modifications in ShellComman…
Browse files Browse the repository at this point in the history
…der.
  • Loading branch information
Frzk committed Jul 10, 2020
1 parent b2493e3 commit 99e8d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ellis_actions/ipset.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def add(self, setname, ip, timeout=0):
"""
args = ['add', '-exist', setname, ip, 'timeout', timeout]

return await self.start(__class__.CMD, *args)
return await self.start(__class__.CMD, args)

async def list(self, setname=None):
"""
Expand All @@ -65,7 +65,7 @@ async def list(self, setname=None):
if setname is not None:
args.append(setname)

return await self.start(__class__.CMD, *args)
return await self.start(__class__.CMD, args)

def chose_blacklist(self, ip):
"""
Expand Down

0 comments on commit 99e8d91

Please sign in to comment.