]> git.proxmox.com Git - pve-common.git/commit
network: add canonical_ip function
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 10 May 2021 12:18:15 +0000 (14:18 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Jun 2021 13:17:37 +0000 (15:17 +0200)
commit8286ef53bbeed977eb6640b05cd022a655533fd2
tree321f9d27c3fc5ded0c17b8bfc11eaa7340103738
parentb0e3bcc186939ccbcb739496d0b4e08151e8aff0
network: add canonical_ip function

Net::IP doesn't seem to have a function for it and normalizing to the full
quad-form is less then ideal if we inted to output IPv6 addresses returned by
that function at some point.

Instead, use NetAddr::IP, which is already used in pve-network.

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