Commit d3033e8f authored by Gabriel Detraz's avatar Gabriel Detraz

FIx la synthaxe correcte pour iptables

parent 5723d39a
......@@ -1838,7 +1838,7 @@ class OuverturePort(RevMixin, AclMixin, models.Model):
def __str__(self):
if self.begin == self.end:
return str(self.begin)
return '-'.join([str(self.begin), str(self.end)])
return ':'.join([str(self.begin), str(self.end)])
def show_port(self):
"""Formatage plus joli, alias pour str"""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment