mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
- Change quoting style
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@16 a942ae1a-1317-0410-a47c-b1dcaea8d605
This commit is contained in:
parent
a314ad0391
commit
9725257a2f
1 changed files with 2 additions and 2 deletions
|
|
@ -29,9 +29,9 @@ from firewall import Firewall
|
|||
class Iptables(Firewall):
|
||||
|
||||
def banIP(self, ip):
|
||||
query = 'iptables -I INPUT 1 -i eth0 -s '+ip+' -j DROP'
|
||||
query = "iptables -I INPUT 1 -i eth0 -s "+ip+" -j DROP"
|
||||
return query
|
||||
|
||||
def unBanIP(self, ip):
|
||||
query = 'iptables -D INPUT -i eth0 -s '+ip+' -j DROP'
|
||||
query = "iptables -D INPUT -i eth0 -s "+ip+" -j DROP"
|
||||
return query
|
||||
|
|
|
|||
Loading…
Reference in a new issue