mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-24 04:36:31 +08:00
logs removal
This commit is contained in:
parent
60c5f06679
commit
f26f7b4097
2 changed files with 2 additions and 4 deletions
|
|
@ -54,17 +54,15 @@ func GetPeersList(networkName string) ([]models.Node, error) {
|
|||
if node.UDPHolePunch == "yes" && errN == nil && functions.CheckEndpoint(udppeers[node.PublicKey]) {
|
||||
endpointstring := udppeers[node.PublicKey]
|
||||
endpointarr := strings.Split(endpointstring, ":")
|
||||
log.Println("got values:", endpointstring, endpointarr)
|
||||
if len(endpointarr) == 2 {
|
||||
port, err := strconv.Atoi(endpointarr[1])
|
||||
if err == nil {
|
||||
log.Println("overriding:", endpointarr[0], int32(port))
|
||||
peer.Endpoint = endpointarr[0]
|
||||
peer.ListenPort = int32(port)
|
||||
}
|
||||
}
|
||||
}
|
||||
log.Println("setting peer:", peer.PublicKey, peer.Endpoint, peer.ListenPort)
|
||||
functions.PrintUserLog("netmaker", "sending peer "+peer.MacAddress+" "+peer.Endpoint, 2)
|
||||
peers = append(peers, peer)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
main.go
2
main.go
|
|
@ -75,7 +75,7 @@ func startControllers() {
|
|||
if servercfg.IsDNSMode() {
|
||||
err := controller.SetDNS()
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
log.Println("error occurred initializing DNS:", err)
|
||||
}
|
||||
}
|
||||
//Run Rest Server
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue