mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-09 10:41:07 +08:00
logs removal
This commit is contained in:
@@ -54,17 +54,15 @@ func GetPeersList(networkName string) ([]models.Node, error) {
|
|||||||
if node.UDPHolePunch == "yes" && errN == nil && functions.CheckEndpoint(udppeers[node.PublicKey]) {
|
if node.UDPHolePunch == "yes" && errN == nil && functions.CheckEndpoint(udppeers[node.PublicKey]) {
|
||||||
endpointstring := udppeers[node.PublicKey]
|
endpointstring := udppeers[node.PublicKey]
|
||||||
endpointarr := strings.Split(endpointstring, ":")
|
endpointarr := strings.Split(endpointstring, ":")
|
||||||
log.Println("got values:", endpointstring, endpointarr)
|
|
||||||
if len(endpointarr) == 2 {
|
if len(endpointarr) == 2 {
|
||||||
port, err := strconv.Atoi(endpointarr[1])
|
port, err := strconv.Atoi(endpointarr[1])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
log.Println("overriding:", endpointarr[0], int32(port))
|
|
||||||
peer.Endpoint = endpointarr[0]
|
peer.Endpoint = endpointarr[0]
|
||||||
peer.ListenPort = int32(port)
|
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)
|
peers = append(peers, peer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
main.go
2
main.go
@@ -75,7 +75,7 @@ func startControllers() {
|
|||||||
if servercfg.IsDNSMode() {
|
if servercfg.IsDNSMode() {
|
||||||
err := controller.SetDNS()
|
err := controller.SetDNS()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Println("error occurred initializing DNS:", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Run Rest Server
|
//Run Rest Server
|
||||||
|
Reference in New Issue
Block a user