Find a file
Stefan Hanreich f5ad8efc4e subnet: dhcp: only accept single ips and normalize them
Net::IP accepts a myriad of different IP objects from ranges to
prefixes to singular IPs. We check if the object consists only of a
singular IP and normalize the IP if it has size 1 (since then it
could still be a /32 prefix or a range consisting of one IP).
Otherwise we would theoretically accept any valid Net::IP object here.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by: Hannes Duerr <h.duerr@proxmox.com>
Link: https://lore.proxmox.com/20250307125056.169575-3-s.hanreich@proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-04-07 18:35:40 +02:00
debian d/control: break the circular build-dependency with pve-firewall, and more 2025-04-07 12:47:23 +02:00
src subnet: dhcp: only accept single ips and normalize them 2025-04-07 18:35:40 +02:00
.gitignore gitignore: build artifacts from sbuild 2024-04-04 16:50:08 +02:00
Makefile split into implementation and API endpoint packages 2024-11-18 18:17:20 +01:00