]> git.proxmox.com Git - pve-common.git/commit
network: is_ip_in_cidr: correctly handle the CIDR being a singleton range
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 10 May 2021 12:18:13 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Jun 2021 13:17:37 +0000 (15:17 +0200)
commit123c310474b12a21e85d6d12d255faf3a7d4155b
tree40bd1c8719a74cb36b401dd1ac81a9cc3b424b5d
parent06c1c13f1c090e4dc8a76955b4f221563cee76b2
network: is_ip_in_cidr: correctly handle the CIDR being a singleton range

i.e.  is_ip_in_cidr('127.0.0.1', '127.0.0.1/32', 4) should return 1;

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/Network.pm