aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJanos Guljas <janos@resenje.org>2017-12-05 05:28:11 +0800
committerJanos Guljas <janos@resenje.org>2017-12-05 05:28:11 +0800
commit15ad6f27da1bbcb4219f0786d3d08d52c27a4385 (patch)
tree0d7b3ee96b492db091fd6a898c619248ab96f701 /cmd
parentb33a051a487bed2a010b62a6f2dc531157341013 (diff)
downloaddexon-15ad6f27da1bbcb4219f0786d3d08d52c27a4385.tar.gz
dexon-15ad6f27da1bbcb4219f0786d3d08d52c27a4385.tar.zst
dexon-15ad6f27da1bbcb4219f0786d3d08d52c27a4385.zip
swarm: check if "--ens-api ''" is specified in order to disable ENS
Diffstat (limited to 'cmd')
-rw-r--r--cmd/swarm/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index d9744c011..a937a9119 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -462,6 +462,10 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
ContractAddress: ensAddr,
})
case 1:
+ // Check if "--ens-api ''" is specified in order to disable ENS.
+ if ensAPIs[0] == "" {
+ break
+ }
// Check if only one --ens-api is specified in order to use --ens-addr value
// to preserve the backward compatibility with single --ens-api flag.
c := parseFlagEnsAPI(ensAPIs[0])