Commit d798a61b by Bach Dániel Committed by Guba Sándor

firewall: add pk to list_ports()

parent 64f0baeb
......@@ -612,11 +612,13 @@ class Host(models.Model):
forward['ipv4'] = {
'host': self.get_hostname(proto='ipv4'),
'port': public4,
'pk': rule.pk,
}
if self.ipv6: # ipv6
forward['ipv6'] = {
'host': self.get_hostname(proto='ipv6'),
'port': public6,
'pk': rule.pk,
}
retval.append(forward)
return retval
......
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