depot/patches/base/ipfs/ipfs-void-tld.patch
2022-01-14 22:49:37 +01:00

12 lines
346 B
Diff

diff --git a/namesys/namesys.go b/namesys/namesys.go
index 760d04c17..4f3de146d 100644
--- a/namesys/namesys.go
+++ b/namesys/namesys.go
@@ -236,3 +236,7 @@ func (ns *mpns) PublishWithEOL(ctx context.Context, name ci.PrivKey, value path.
ns.cacheSet(string(id), value, ttl)
return nil
}
+
+func init() {
+ isd.ExtendedTLDs["VOID"] = true
+}