]> git.proxmox.com Git - pve-firewall.git/commit
allow non zero ip address host bits to be entered
authorStefan Hrdlicka <s.hrdlicka@proxmox.com>
Tue, 13 Dec 2022 15:14:18 +0000 (16:14 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 14 Dec 2022 13:40:39 +0000 (14:40 +0100)
commit1218eee930eea75f9fd9624d8dc6f4c11b6c683f
tree7c8230c6520c824190119edc3208ed6c8777fb23
parentb4577a253c2e7fbf7a3ec41498d13fb09b4c63e4
allow non zero ip address host bits to be entered

They can already be set directly via the cluster.fw file. Net::IP is just a
bit more picky with what it allows:
For example:
  error:   192.168.1.155/24
  correct: 192.168.1.0/24

This cleans the entered IP and removes the non zero host bits.

Signed-off-by: Stefan Hrdlicka <s.hrdlicka@proxmox.com>
src/PVE/API2/Firewall/IPSet.pm
src/PVE/Firewall.pm