Browse Source

bug squashin

worker-9 4 years ago
parent
commit
6210c34bee
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/common.go

+ 2 - 0
controllers/common.go

@@ -44,6 +44,8 @@ func GetPeersList(networkName string) ([]models.Node, error) {
 		}
 		if node.Network == networkName && node.IsPending != "yes" {
 			peer.PublicKey = node.PublicKey
+			peer.Endpoint = node.Endpoint
+			peer.ListenPort = node.ListenPort
 			if node.UDPHolePunch == "yes" && errN == nil && functions.CheckEndpoint(udppeers[node.PublicKey]) {
 				endpointstring := udppeers[node.PublicKey]
 				endpointarr := strings.Split(endpointstring, ":")