···3131}
32323333// Some top-level domains (TLDs) are disallowed for registration across the atproto ecosystem. The *syntax* is valid, but these should never be considered acceptable handles for account registration or linking.
3434+//
3535+// The reserved '.test' TLD is allowed, for testing and development. It is expected that '.test' domain resolution will fail in a real-world network.
3436func (h Handle) AllowedTLD() bool {
3537 switch h.TLD() {
3638 case "local",
···3840 "invalid",
3941 "localhost",
4042 "internal",
4141- "onion":
4343+ "example",
4444+ "onion",
4545+ "alt":
4246 return false
4347 }
4448 return true