]> git.proxmox.com Git - pve-firewall.git/blobdiff - src/PVE/Firewall.pm
fix API: property sport/dport requires protocol
[pve-firewall.git] / src / PVE / Firewall.pm
index bfaa35003e3362da141b27a48fc1484d1eea095f..cacfedcf19b936947f3bdbdf50632853c05791a4 100644 (file)
@@ -915,10 +915,12 @@ my $rule_properties = {
     sport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
     sport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
+       requires => 'proto',
     },
     dport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
     },
     dport => {
        type => 'string', format => 'pve-fw-port-spec',
        optional => 1,
+       requires => 'proto',
     },
     comment => {
        type => 'string',
     },
     comment => {
        type => 'string',