Skip to content

Commit

Permalink
Fix 'no-connections' flag for the 'node'.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeskov committed Feb 3, 2024
1 parent 1ee3cfa commit 51c2dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func FromArgs(scheme proto.Scheme, c *config) func(s *settings.NodeSettings) err
s.GrpcAddr = c.grpcAddr
s.WavesNetwork = proto.NetworkStrFromScheme(scheme)
s.Addresses = c.peerAddresses
if c.peerAddresses == "" {
if c.peerAddresses == "" && !c.disableOutgoingConnections {
s.Addresses = defaultPeers[c.blockchainType]
}
return nil
Expand Down

0 comments on commit 51c2dba

Please sign in to comment.