fixing model

This commit is contained in:
afeiszli
2021-09-18 11:01:34 -04:00
parent 74b15a6a13
commit b828f7b6d9
8 changed files with 48 additions and 21 deletions

View File

@@ -104,8 +104,11 @@ func Uninstall() error {
}
// clean up OS specific stuff
if netclientutils.IsWindows() {
local.Cleanup()
local.CleanupWindows()
} else if netclientutils.IsWindows() {
local.CleanupMac()
}
return err
}
@@ -119,7 +122,7 @@ func LeaveNetwork(network string) error {
node := cfg.Node
var wcclient nodepb.NodeServiceClient
conn, err := grpc.Dial(cfg.Server.GRPCAddress,
conn, err := grpc.Dial(cfg.Server.GRPCAddress,
netclientutils.GRPCRequestOpts(cfg.Server.GRPCSSL))
if err != nil {
log.Printf("Unable to establish client connection to "+servercfg.GRPCAddress+": %v", err)
@@ -183,7 +186,7 @@ func DeleteInterface(ifacename string, postdown string) error {
if err != nil {
log.Println(err)
}
_, err = local.RunCmd(ipExec + " link del " + ifacename, false)
_, err = local.RunCmd(ipExec+" link del "+ifacename, false)
if postdown != "" {
runcmds := strings.Split(postdown, "; ")
err = local.RunCmds(runcmds, true)