mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 13:35:23 +00:00
Added note on TODO
This commit is contained in:
parent
6981543db6
commit
1a0f6f6e39
2
dns.go
2
dns.go
@ -17,10 +17,10 @@ func (h *Headscale) generateMagicDNSRootDomains() (*[]dnsname.FQDN, error) {
|
|||||||
ipv6base := dnsname.FQDN("0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa.")
|
ipv6base := dnsname.FQDN("0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa.")
|
||||||
fqdns := []dnsname.FQDN{base, ipv6base}
|
fqdns := []dnsname.FQDN{base, ipv6base}
|
||||||
|
|
||||||
|
// TODO(juanfont): This only works for the 100.64.0.0/10 range.
|
||||||
for i := 64; i <= 127; i++ {
|
for i := 64; i <= 127; i++ {
|
||||||
fqdn, err := dnsname.ToFQDN(fmt.Sprintf("%d.100.in-addr.arpa.", i))
|
fqdn, err := dnsname.ToFQDN(fmt.Sprintf("%d.100.in-addr.arpa.", i))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO: propagate error
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
fqdns = append(fqdns, fqdn)
|
fqdns = append(fqdns, fqdn)
|
||||||
|
Loading…
Reference in New Issue
Block a user