Commit e7a6a8e9 by Bach Dániel Committed by Bach Dániel

firewall fix missing return in _get_random_port()

parent 39be77a3
...@@ -487,6 +487,7 @@ class Host(models.Model): ...@@ -487,6 +487,7 @@ class Host(models.Model):
else: else:
raise ValidationError( raise ValidationError(
_("All %s ports are already in use.") % proto) _("All %s ports are already in use.") % proto)
return public
def add_port(self, proto, public=None, private=None): def add_port(self, proto, public=None, private=None):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment