aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorJanos Guljas <janos@resenje.org>2017-12-18 23:22:39 +0800
committerJanos Guljas <janos@resenje.org>2017-12-18 23:22:39 +0800
commitc0a4d9e1e64a09a19484c8c12e24505d9bacbd57 (patch)
tree1ccb0df96f947a17a23dcdf84a6871bd4a9759ba /swarm/api
parent47a801455966298d1d1519eebb955024c8f02b84 (diff)
downloaddexon-c0a4d9e1e64a09a19484c8c12e24505d9bacbd57.tar.gz
dexon-c0a4d9e1e64a09a19484c8c12e24505d9bacbd57.tar.zst
dexon-c0a4d9e1e64a09a19484c8c12e24505d9bacbd57.zip
cmd/swarm, swarm: disable ENS API by default
Specifying ENS API CLI flag, env variable or configuration field is required for ENS resolving. Backward compatibility is preserved with --ens-api="" CLI flag value.
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/config.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/swarm/api/config.go b/swarm/api/config.go
index 3f1a2a074..6b224140a 100644
--- a/swarm/api/config.go
+++ b/swarm/api/config.go
@@ -48,7 +48,6 @@ type Config struct {
*network.SyncParams
Contract common.Address
EnsRoot common.Address
- EnsDisabled bool
EnsAPIs []string
Path string
ListenAddr string
@@ -78,7 +77,6 @@ func NewDefaultConfig() (self *Config) {
Path: node.DefaultDataDir(),
EnsAPIs: nil,
EnsRoot: ens.TestNetAddress,
- EnsDisabled: false,
NetworkId: network.NetworkId,
SwapEnabled: false,
SyncEnabled: true,