From e1a74d8320a4d5fccb9671199062ed94b4124a09 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 5 Mar 2024 09:13:09 -0300 Subject: [PATCH] Fix display of rule/protocol --- templates/firewall/firewall_rule_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/firewall/firewall_rule_list.html b/templates/firewall/firewall_rule_list.html index 63a40b7..9ad9b7a 100644 --- a/templates/firewall/firewall_rule_list.html +++ b/templates/firewall/firewall_rule_list.html @@ -126,7 +126,7 @@ {% for peer in rule.destination_peer.all %}{% if rule.not_destination %}! {% endif %}{{ peer }}{% if rule.destination_peer_include_networks %} +{% endif %}
{% endfor %} - {{ rule.get_protocol_display|default_if_none:'' }} + {% if rule.protocol %}{{ rule.get_protocol_display }}{% else %}all{% endif %} {{ rule.destination_port|default_if_none:'' }} {% if rule.state_new %}{% if rule.not_state %}! {% endif %}New
{% endif %}