mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-23 17:03:17 +08:00
added netmaker check on checkin
This commit is contained in:
@@ -45,7 +45,7 @@ func GetPeersList(networkName string) ([]models.PeersResponse, error) {
|
||||
peer.EgressGatewayRanges = strings.Join(node.EgressGatewayRanges, ",")
|
||||
}
|
||||
if node.Network == networkName && node.IsPending != "yes" {
|
||||
if node.UDPHolePunch == "yes" && errN == nil && functions.IsBase64(peer.PublicKey) && functions.CheckEndpoint(peer.Endpoint) {
|
||||
if node.UDPHolePunch == "yes" && errN == nil && functions.CheckEndpoint(udppeers[peer.PublicKey]) {
|
||||
endpointstring := udppeers[peer.PublicKey]
|
||||
endpointarr := strings.Split(endpointstring, ":")
|
||||
log.Println("got values:",endpointstring,endpointarr)
|
||||
|
Reference in New Issue
Block a user