Handle v4-mapped IPv6 addresses sanely for --synth-domain.

This commit is contained in:
Simon Kelley
2016-08-11 23:38:54 +01:00
parent c8328ecde8
commit 6d95099c56
3 changed files with 33 additions and 12 deletions

View File

@@ -619,6 +619,8 @@ but IPv6 addresses may start with '::'
but DNS labels may not start with '-' so in this case if no prefix is
configured a zero is added in front of the label. ::1 becomes 0--1.
V4 mapped IPv6 addresses, which have a representation like ::ffff:1.2.3.4 are handled specially, and become like 0--ffff-1-2-3-4
The address range can be of the form
<ip address>,<ip address> or <ip address>/<netmask>
.TP