Skip to content

Commit

Permalink
windows path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 23, 2024
1 parent d8c9681 commit 1808747
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/zrok/agentVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import (
"github.com/spf13/cobra"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"path/filepath"
"strings"
)

func init() {
Expand Down Expand Up @@ -39,6 +41,7 @@ func (cmd *agentVersionCommand) run(_ *cobra.Command, _ []string) {
if err != nil {
tui.Error("error getting agent socket", err)
}
agentSocket = filepath.ToSlash(strings.Replace(agentSocket, ":", "", -1))

conn, err := grpc.NewClient("unix://"+agentSocket, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil {
Expand Down

0 comments on commit 1808747

Please sign in to comment.