[firewall4] La liste d'ip donnée par générate est incomplète

This commit is contained in:
Valentin Samir 2013-05-01 17:58:23 +02:00
parent d447b9546b
commit dd83999ddd
2 changed files with 11 additions and 5 deletions

View file

@ -96,7 +96,7 @@ class Ipset(object):
self.flush()
if self.squeeze:
self.destroy()
except IpsetError: pass
except IpsetError as error: sys.stderr.write("%s\n" % error)
cmd="cat %s | %s -R" % (path,self.ipset)
status,output=commands.getstatusoutput(cmd)
if status: