fixed windows, updated wgctrl

This commit is contained in:
0xdcarns
2021-09-21 17:50:09 -04:00
parent 6418378b07
commit 3fc4c253a8
7 changed files with 17 additions and 11 deletions

View File

@@ -131,15 +131,10 @@ func LeaveNetwork(network string) error {
} else {
wcclient = nodepb.NewNodeServiceClient(conn)
ctx := context.Background()
ctx, err = auth.SetJWT(wcclient, network)
ctx, err := auth.SetJWT(wcclient, network)
if err != nil {
log.Printf("Failed to authenticate: %v", err)
} else {
if !ncutils.IsKernel() {
//wireguard.RemoveConf(node.Interface, true)
//ncutils.PrintLog("removed network tunnel "+node.Interface, 1)
}
node.SetID()
var header metadata.MD
_, err = wcclient.DeleteNode(