mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 06:32:26 +00:00
FIx la synthaxe correcte pour iptables
This commit is contained in:
parent
5723d39af0
commit
d3033e8f48
1 changed files with 1 additions and 1 deletions
|
@ -1838,7 +1838,7 @@ class OuverturePort(RevMixin, AclMixin, models.Model):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
if self.begin == self.end:
|
if self.begin == self.end:
|
||||||
return str(self.begin)
|
return str(self.begin)
|
||||||
return '-'.join([str(self.begin), str(self.end)])
|
return ':'.join([str(self.begin), str(self.end)])
|
||||||
|
|
||||||
def show_port(self):
|
def show_port(self):
|
||||||
"""Formatage plus joli, alias pour str"""
|
"""Formatage plus joli, alias pour str"""
|
||||||
|
|
Loading…
Reference in a new issue