8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

FIx la synthaxe correcte pour iptables

This commit is contained in:
Gabriel Detraz 2018-08-09 00:03:44 +02:00
parent 5723d39af0
commit d3033e8f48

View file

@ -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"""