From 75a02c3e38bbe2bbeac99a5d1626d925eb115630 Mon Sep 17 00:00:00 2001 From: Maycon Santos Date: Fri, 29 Nov 2024 00:34:43 +0100 Subject: [PATCH] re-add wmi --- client/ios/NetBirdSDK/client.go | 4 ++-- client/system/info_windows.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/ios/NetBirdSDK/client.go b/client/ios/NetBirdSDK/client.go index 08b4406b1..460332baa 100644 --- a/client/ios/NetBirdSDK/client.go +++ b/client/ios/NetBirdSDK/client.go @@ -204,7 +204,7 @@ func (c *Client) IsLoginRequired() bool { 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 } @@ -244,7 +244,7 @@ func (c *Client) LoginForMobile() string { return } jwtToken := tokenInfo.GetTokenToUse() - _ = internal.Login(ctx, cfg, "", jwtToken) + _ = internal.Login(ctx, cfg, "", jwtToken, &system.StaticInfo{}) c.loginComplete = true }() diff --git a/client/system/info_windows.go b/client/system/info_windows.go index 2e331d806..f12d19678 100644 --- a/client/system/info_windows.go +++ b/client/system/info_windows.go @@ -8,6 +8,7 @@ import ( "strings" log "github.com/sirupsen/logrus" + "github.com/yusufpapurcu/wmi" "golang.org/x/sys/windows/registry" "github.com/netbirdio/netbird/client/system/detect_cloud"