]> git.proxmox.com Git - proxmox-backup.git/commit
require square brackets for ipv6 addresses
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 29 Sep 2020 14:05:52 +0000 (16:05 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 30 Sep 2020 04:16:27 +0000 (06:16 +0200)
commit60b9b48e71dcc8d7bdbb159a203c7e500225d829
treec6661e2a8d8c6ea08d7f928867529dd6befe359c
parentabf8b5d475b137f3a943f77203114ae60e0c4e72
require square brackets for ipv6 addresses

we need this, because we append the port to this to get a target url
e.g. we print

format!("https://{}:8007/", address)

if address is now an ipv6 (e.g. fe80::1) it would become

https://fe80::1:8007/ which is a valid ipv6 on its own

by using square brackets we get:

https://[fe80::1]:8007/ which now connects to the correct ip/port

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
docs/administration-guide.rst
src/api2/types/mod.rs