mirror of
https://git.hackfreedom.org/mesh.cat/meshname.git
synced 2026-05-22 06:22:32 +00:00
tabs
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ var tld = flag.String("tld", "mesh.cat", "The top level domain for our network")
|
||||
|
||||
// domainFromIP derives a meshname subdomain for the authoritative DNS server address
|
||||
func domainFromIP(target net.IP) string {
|
||||
host := strings.ToLower(base32.StdEncoding.EncodeToString(target)[0:26])
|
||||
host := strings.ToLower(base32.StdEncoding.EncodeToString(target)[0:26])
|
||||
domain := strings.Join([]string{host, ".", *tld, "\n"}, "")
|
||||
return domain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user