mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-08 07:41:41 +08:00
test logs
This commit is contained in:
parent
1f9a94a4ed
commit
a06b451bd9
2 changed files with 4 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ package functions
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"log"
|
||||
"runtime"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -183,6 +184,7 @@ func UpdatePeers(client mqtt.Client, msg mqtt.Message) {
|
|||
ncutils.Log("error retrieving mac iface: " + err.Error())
|
||||
return
|
||||
}
|
||||
log.Println("DELETE ME: got iface for mac:" + iface)
|
||||
}
|
||||
err = wireguard.SetPeers(iface, &cfg.Node, peerUpdate.Peers)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -232,6 +232,8 @@ func SetMacPeerRoutes(realIface string) error {
|
|||
log.Println("DELETE ME: setting mac peer routes")
|
||||
var err error
|
||||
peerIPs := getPeerIPs(realIface)
|
||||
log.Println("DELETE ME: peer ips:")
|
||||
log.Println(peerIPs)
|
||||
if len(peerIPs) == 0 {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue