diff --git a/src/www/firewall_rules_edit.php b/src/www/firewall_rules_edit.php index 62510c4d9..0a3a4239f 100644 --- a/src/www/firewall_rules_edit.php +++ b/src/www/firewall_rules_edit.php @@ -623,6 +623,12 @@ include("head.inc"); $("#"+field).selectpicker('refresh'); $("#"+field).change(); }); + if ($("#proto").val() == 'tcp') { + $(".input_tcpflags_any,.input_flags").prop('disabled', false); + } else { + $(".input_tcpflags_any,.input_flags").prop('disabled', true); + } + }); // IPv4/IPv6 select