mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
fixed windows, updated wgctrl
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user