From 5018f8dad350a99abc322ef17903ebd960e78582 Mon Sep 17 00:00:00 2001 From: braginini Date: Mon, 23 May 2022 09:52:44 +0200 Subject: [PATCH] Add User-Agent to CLI --- client/cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/cmd/root.go b/client/cmd/root.go index 9a02dcc44..02af9a738 100644 --- a/client/cmd/root.go +++ b/client/cmd/root.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "github.com/netbirdio/netbird/client/system" "io" "io/fs" "io/ioutil" @@ -156,6 +157,7 @@ func DialClientGRPCServer(ctx context.Context, addr string) (*grpc.ClientConn, e strings.TrimPrefix(addr, "tcp://"), grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithBlock(), + grpc.WithUserAgent(system.NetBirdCLIUserAgent()), ) }