]> git.proxmox.com Git - pve-firewall.git/commit
fix #2358: allow --<opt> in firewall rule config files
authorMira Limbeck <m.limbeck@proxmox.com>
Mon, 22 Feb 2021 12:00:18 +0000 (13:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 22 Feb 2021 13:42:23 +0000 (14:42 +0100)
commitab9a6ae6fc5e848cfd0b8deb0d25103adf35917f
tree68bd22426aad98d541a8fc109edebc257e3402ac
parent8a4e5b696da3b87aea84451f87af807025377c00
fix #2358: allow --<opt> in firewall rule config files

The docs mention --<opt> as valid syntax for firewall rules, but the
code that parses the .fw files only accepts -<opt>. To make it
consistent with the docs and the API, also accept --<opt>.

In addition allow 'proto' as option, not only '-p'.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
src/PVE/Firewall.pm