mirror of
https://github.com/openziti/zrok.git
synced 2025-06-25 12:12:32 +02:00
windows path handling
This commit is contained in:
parent
d8c9681da1
commit
1808747215
@ -8,6 +8,8 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user