re-add wmi

This commit is contained in:
Maycon Santos 2024-11-29 00:34:43 +01:00
parent 052525093a
commit 75a02c3e38
2 changed files with 3 additions and 2 deletions

View File

@ -204,7 +204,7 @@ func (c *Client) IsLoginRequired() bool {
ConfigPath: c.cfgFile, ConfigPath: c.cfgFile,
}) })
needsLogin, _ := internal.IsLoginRequired(ctx, cfg.PrivateKey, cfg.ManagementURL, cfg.SSHKey) needsLogin, _ := internal.IsLoginRequired(ctx, cfg.PrivateKey, cfg.ManagementURL, cfg.SSHKey, &system.StaticInfo{})
return needsLogin return needsLogin
} }
@ -244,7 +244,7 @@ func (c *Client) LoginForMobile() string {
return return
} }
jwtToken := tokenInfo.GetTokenToUse() jwtToken := tokenInfo.GetTokenToUse()
_ = internal.Login(ctx, cfg, "", jwtToken) _ = internal.Login(ctx, cfg, "", jwtToken, &system.StaticInfo{})
c.loginComplete = true c.loginComplete = true
}() }()

View File

@ -8,6 +8,7 @@ import (
"strings" "strings"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/yusufpapurcu/wmi"
"golang.org/x/sys/windows/registry" "golang.org/x/sys/windows/registry"
"github.com/netbirdio/netbird/client/system/detect_cloud" "github.com/netbirdio/netbird/client/system/detect_cloud"