Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-namesys
Commits
c91aa69e
Commit
c91aa69e
authored
Apr 16, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove special casing of .eth domains
parent
a360c661
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
dns.go
dns.go
+0
-9
No files found.
dns.go
View file @
c91aa69e
...
...
@@ -13,9 +13,6 @@ import (
isd
"github.com/jbenet/go-is-domain"
)
const
ethTLD
=
"eth"
const
linkTLD
=
"domains"
// LookupTXTFunc is a generic type for a function that lookups TXT record values.
type
LookupTXTFunc
func
(
ctx
context
.
Context
,
name
string
)
(
txt
[]
string
,
err
error
)
...
...
@@ -68,12 +65,6 @@ func (r *DNSResolver) resolveOnceAsync(ctx context.Context, name string, options
fqdn
=
domain
+
"."
}
if
strings
.
HasSuffix
(
fqdn
,
"."
+
ethTLD
+
"."
)
{
// This is an ENS name. As we're resolving via an arbitrary DNS server
// that may not know about .eth we need to add our link domain suffix.
fqdn
+=
linkTLD
+
"."
}
rootChan
:=
make
(
chan
lookupRes
,
1
)
go
workDomain
(
ctx
,
r
,
fqdn
,
rootChan
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment