good morning!!!!

Skip to content
Snippets Groups Projects
Commit 15ad6f27 authored by Janos Guljas's avatar Janos Guljas
Browse files

swarm: check if "--ens-api ''" is specified in order to disable ENS

parent b33a051a
No related branches found
No related tags found
No related merge requests found
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment