Skip to content

Commit

Permalink
Merge "[FAB-3643] respect peer.gossip.endpoint configuration"
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersingh24 authored and Gerrit Code Review committed May 4, 2017
2 parents 2a15510 + 2ccbb53 commit a48169d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gossip/service/gossip_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ func InitGossipServiceCustomDeliveryFactory(peerIdentity []byte, endpoint string
factory DeliveryServiceFactory, mcs api.MessageCryptoService, secAdv api.SecurityAdvisor,
secureDialOpts api.PeerSecureDialOpts, bootPeers ...string) {
once.Do(func() {
if overrideEndpoint := viper.GetString("peer.gossip.endpoint"); overrideEndpoint != "" {
endpoint = overrideEndpoint
}

logger.Info("Initialize gossip with endpoint", endpoint, "and bootstrap set", bootPeers)

idMapper := identity.NewIdentityMapper(mcs)
Expand Down

0 comments on commit a48169d

Please sign in to comment.