feat(netclient): add listing of nodes with hostnames

This commit is contained in:
Adrien Raffin-Caboisse
2021-10-13 18:03:08 +02:00
parent 3a399aff23
commit 51a09167fc
5 changed files with 127 additions and 30 deletions

View File

@@ -7,6 +7,7 @@ import (
"strconv"
"strings"
"time"
"github.com/gravitl/netmaker/database"
"github.com/gravitl/netmaker/dnslogic"
"github.com/gravitl/netmaker/functions"
@@ -277,6 +278,7 @@ func setPeerInfo(node models.Node) models.Node {
peer.IsRelayed = node.IsRelayed
peer.PublicKey = node.PublicKey
peer.Endpoint = node.Endpoint
peer.Name = node.Name
peer.LocalAddress = node.LocalAddress
peer.ListenPort = node.ListenPort
peer.AllowedIPs = node.AllowedIPs