Skip to content

Commit

Permalink
Added note on TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfont committed Oct 5, 2021
1 parent 6981543 commit 1a0f6f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
fqdns := []dnsname.FQDN{base, ipv6base}

// TODO(juanfont): This only works for the 100.64.0.0/10 range.
for i := 64; i <= 127; i++ {
fqdn, err := dnsname.ToFQDN(fmt.Sprintf("%d.100.in-addr.arpa.", i))
if err != nil {
// TODO: propagate error
continue
}
fqdns = append(fqdns, fqdn)
Expand Down

0 comments on commit 1a0f6f6

Please sign in to comment.