mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
revert addr_factory
This commit is contained in:
@@ -64,7 +64,7 @@ func NewServer(cfg *ServerConfig) (*Server, error) {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
opts := buildOptions(cfg.Port)
|
||||
if cfg.RelayNodeAddr != "" {
|
||||
opts = append(opts, libp2p.AddrsFactory(withRelayAddrs(cfg.RelayNodeAddr)))
|
||||
opts = append(opts, libp2p.AddrsFactory(relayAddrsOnly(cfg.RelayNodeAddr)))
|
||||
}
|
||||
if !checkAvailablePort(cfg.Port) {
|
||||
cancel()
|
||||
|
||||
Reference in New Issue
Block a user