mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 09:36:08 +08:00
added netmaker check on checkin
This commit is contained in:
parent
4385131bc6
commit
be1d8d48ea
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue