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-dms3
Commits
5202f76d
Commit
5202f76d
authored
Mar 01, 2018
by
Dirk McCormick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syntactic changes
License: MIT Signed-off-by:
Dirk McCormick
<
dirkmdev@gmail.com
>
parent
350362ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
core/commands/dns.go
core/commands/dns.go
+1
-1
core/commands/ipns.go
core/commands/ipns.go
+1
-1
core/coreapi/name.go
core/coreapi/name.go
+1
-1
No files found.
core/commands/dns.go
View file @
5202f76d
...
...
@@ -58,7 +58,7 @@ The resolver can recursively resolve:
name
:=
req
.
Arguments
()[
0
]
resolver
:=
namesys
.
NewDNSResolver
()
ropts
:=
[]
nsopts
.
ResolveOpt
{}
var
ropts
[]
nsopts
.
ResolveOpt
if
!
recursive
{
ropts
=
append
(
ropts
,
nsopts
.
Depth
(
1
))
}
...
...
core/commands/ipns.go
View file @
5202f76d
...
...
@@ -112,7 +112,7 @@ Resolve the value of a dnslink:
recursive
,
_
,
_
:=
req
.
Option
(
"recursive"
)
.
Bool
()
rc
,
rcok
,
_
:=
req
.
Option
(
"dht-record-count"
)
.
Int
()
dhtt
,
dhttok
,
_
:=
req
.
Option
(
"dht-timeout"
)
.
Int
()
ropts
:=
[]
nsopts
.
ResolveOpt
{}
var
ropts
[]
nsopts
.
ResolveOpt
if
!
recursive
{
ropts
=
append
(
ropts
,
nsopts
.
Depth
(
1
))
}
...
...
core/coreapi/name.go
View file @
5202f76d
...
...
@@ -122,7 +122,7 @@ func (api *NameAPI) Resolve(ctx context.Context, name string, opts ...caopts.Nam
name
=
"/ipns/"
+
name
}
ropts
:=
[]
nsopts
.
ResolveOpt
{}
var
ropts
[]
nsopts
.
ResolveOpt
if
!
options
.
Recursive
{
ropts
=
append
(
ropts
,
nsopts
.
Depth
(
1
))
}
...
...
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