Commit a90c5089 authored by Jeromy Johnson's avatar Jeromy Johnson Committed by GitHub

Merge pull request #3605 from ipfs/feat/none-routing

add in option to use nil-routing
parents 75cce80b 0cbbdae1
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment