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

Merge branch 'fix_firewall_synth' into 'dev'

FIx la synthaxe correcte pour iptables

See merge request federez/re2o!239
This commit is contained in:
chirac 2018-08-09 00:04:50 +02:00
commit ddce1892b7

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