aboutsummaryrefslogtreecommitdiffstats
path: root/node/config.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-23 03:52:31 +0800
committerFelix Lange <fjl@twurst.com>2016-11-23 05:21:18 +0800
commite5edd3b983189790391dca5b2ae4a0e460cb7f42 (patch)
treefee7b38c781ccd8eb57f68c59a1142c53c9c8dcd /node/config.go
parenta47341cf96498332e2f0f67c1a6456c67831a5d0 (diff)
downloaddexon-e5edd3b983189790391dca5b2ae4a0e460cb7f42.tar.gz
dexon-e5edd3b983189790391dca5b2ae4a0e460cb7f42.tar.zst
dexon-e5edd3b983189790391dca5b2ae4a0e460cb7f42.zip
cmd/bootnode, cmd/geth, cmd/bzzd: add --netrestrict
Diffstat (limited to 'node/config.go')
-rw-r--r--node/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/config.go b/node/config.go
index 8d85b7ff8..8d75e441b 100644
--- a/node/config.go
+++ b/node/config.go
@@ -34,6 +34,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/discv5"
"github.com/ethereum/go-ethereum/p2p/nat"
+ "github.com/ethereum/go-ethereum/p2p/netutil"
)
var (
@@ -103,6 +104,10 @@ type Config struct {
// Listener address for the V5 discovery protocol UDP traffic.
DiscoveryV5Addr string
+ // Restrict communication to white listed IP networks.
+ // The whitelist only applies when non-nil.
+ NetRestrict *netutil.Netlist
+
// BootstrapNodes used to establish connectivity with the rest of the network.
BootstrapNodes []*discover.Node