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
a90c5089
Commit
a90c5089
authored
Jan 18, 2017
by
Jeromy Johnson
Committed by
GitHub
Jan 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3605 from ipfs/feat/none-routing
add in option to use nil-routing
parents
75cce80b
0cbbdae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
cmd/ipfs/daemon.go
cmd/ipfs/daemon.go
+3
-0
No files found.
cmd/ipfs/daemon.go
View file @
a90c5089
...
...
@@ -45,6 +45,7 @@ const (
routingOptionSupernodeKwd
=
"supernode"
routingOptionDHTClientKwd
=
"dhtclient"
routingOptionDHTKwd
=
"dht"
routingOptionNoneKwd
=
"none"
unencryptTransportKwd
=
"disable-transport-encryption"
unrestrictedApiAccessKwd
=
"unrestricted-api"
writableKwd
=
"writable"
...
...
@@ -331,6 +332,8 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
ncfg
.
Routing
=
core
.
DHTClientOption
case
routingOptionDHTKwd
:
ncfg
.
Routing
=
core
.
DHTOption
case
routingOptionNoneKwd
:
ncfg
.
Routing
=
core
.
NilRouterOption
default
:
res
.
SetError
(
fmt
.
Errorf
(
"unrecognized routing option: %s"
,
routingOption
),
cmds
.
ErrNormal
)
return
...
...
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