mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
parent
4f0dcd5e6e
commit
60b1596c4d
@ -24,7 +24,7 @@ func buildOptions(cfg *Config, ip net.IP, priKey *ecdsa.PrivateKey) []libp2p.Opt
|
|||||||
libp2p.EnableRelay(),
|
libp2p.EnableRelay(),
|
||||||
libp2p.ListenAddrs(listen),
|
libp2p.ListenAddrs(listen),
|
||||||
whitelistSubnet(cfg.WhitelistCIDR),
|
whitelistSubnet(cfg.WhitelistCIDR),
|
||||||
libp2p.ConnectionManager(connmgr.NewConnManager(int(cfg.MaxPeers), int(cfg.MaxPeers), 1 * time.Minute)),
|
libp2p.ConnectionManager(connmgr.NewConnManager(int(cfg.MaxPeers), int(cfg.MaxPeers), 1 * time.Second)),
|
||||||
}
|
}
|
||||||
if cfg.EnableUPnP {
|
if cfg.EnableUPnP {
|
||||||
options = append(options, libp2p.NATPortMap()) //Allow to use UPnP
|
options = append(options, libp2p.NATPortMap()) //Allow to use UPnP
|
||||||
|
Loading…
Reference in New Issue
Block a user