mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-14 06:48:20 +00:00
swarm: check if "--ens-api ''" is specified in order to disable ENS
This commit is contained in:
parent
b33a051a48
commit
15ad6f27da
@ -462,6 +462,10 @@ func registerBzzService(ctx *cli.Context, stack *node.Node) {
|
|||||||
ContractAddress: ensAddr,
|
ContractAddress: ensAddr,
|
||||||
})
|
})
|
||||||
case 1:
|
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
|
// 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.
|
// to preserve the backward compatibility with single --ens-api flag.
|
||||||
c := parseFlagEnsAPI(ensAPIs[0])
|
c := parseFlagEnsAPI(ensAPIs[0])
|
||||||
|
Loading…
Reference in New Issue
Block a user