mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-11 01:54:34 +08:00
test logs
This commit is contained in:
parent
c741cbfc2c
commit
1f9a94a4ed
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@ package wireguard
|
|||
import (
|
||||
"bufio"
|
||||
"errors"
|
||||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -228,6 +229,7 @@ func getConfig(path string) string {
|
|||
|
||||
// SetMacPeerRoutes - sets routes for interface from the peer list for all AllowedIps
|
||||
func SetMacPeerRoutes(realIface string) error {
|
||||
log.Println("DELETE ME: setting mac peer routes")
|
||||
var err error
|
||||
peerIPs := getPeerIPs(realIface)
|
||||
if len(peerIPs) == 0 {
|
||||
|
@ -235,6 +237,7 @@ func SetMacPeerRoutes(realIface string) error {
|
|||
}
|
||||
for _, i := range peerIPs {
|
||||
if i != "" {
|
||||
log.Println("DELETE ME: adding route " + i + " on iface " + realIface)
|
||||
err = addRoute(i, realIface)
|
||||
if err != nil {
|
||||
ncutils.PrintLog("error adding route to "+realIface+" for "+i, 1)
|
||||
|
|
Loading…
Reference in a new issue