[client] Fix macos privacy warning when checking static info (#3496)

avoid checking static info with a init call
This commit is contained in:
Carlos Hernandez
2025-04-25 06:41:57 -06:00
committed by GitHub
parent ef8b8a2891
commit c0eaea938e
5 changed files with 23 additions and 6 deletions

View File

@ -16,12 +16,17 @@ import (
"github.com/netbirdio/netbird/client/proto"
"github.com/netbirdio/netbird/client/server"
"github.com/netbirdio/netbird/client/system"
"github.com/netbirdio/netbird/util"
)
func (p *program) Start(svc service.Service) error {
// Start should not block. Do the actual work async.
log.Info("starting Netbird service") //nolint
// Collect static system and platform information
system.UpdateStaticInfo()
// in any case, even if configuration does not exists we run daemon to serve CLI gRPC API.
p.serv = grpc.NewServer()