From f3bdb4a784628cd5110c8b3d9d154951ba10764d Mon Sep 17 00:00:00 2001 From: Siebe Schaap Date: Thu, 27 May 2021 20:08:31 +0200 Subject: [PATCH] Rename SSH agent forwarding helper parsePlatformSocketPath() to getWindowsPipeDialer(). Signed-off-by: Siebe Schaap --- session/sshforward/sshprovider/agentprovider.go | 2 +- session/sshforward/sshprovider/agentprovider_unix.go | 2 +- session/sshforward/sshprovider/agentprovider_windows.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/session/sshforward/sshprovider/agentprovider.go b/session/sshforward/sshprovider/agentprovider.go index b4d131dc..981eb96f 100644 --- a/session/sshforward/sshprovider/agentprovider.go +++ b/session/sshforward/sshprovider/agentprovider.go @@ -148,7 +148,7 @@ func toAgentSource(paths []string) (source, error) { return source{}, errors.New("only single socket allowed") } - if parsed := parsePlatformSocketPath(p); parsed != nil { + if parsed := getWindowsPipeDialer(p); parsed != nil { socket = parsed continue } diff --git a/session/sshforward/sshprovider/agentprovider_unix.go b/session/sshforward/sshprovider/agentprovider_unix.go index f4cae92e..07b6b7b1 100644 --- a/session/sshforward/sshprovider/agentprovider_unix.go +++ b/session/sshforward/sshprovider/agentprovider_unix.go @@ -10,6 +10,6 @@ func getFallbackAgentPath() (string, error) { return "", errors.Errorf("make sure SSH_AUTH_SOCK is set") } -func parsePlatformSocketPath(path string) (*socketDialer) { +func getWindowsPipeDialer(path string) *socketDialer { return nil } diff --git a/session/sshforward/sshprovider/agentprovider_windows.go b/session/sshforward/sshprovider/agentprovider_windows.go index 1dcb26e3..28914319 100644 --- a/session/sshforward/sshprovider/agentprovider_windows.go +++ b/session/sshforward/sshprovider/agentprovider_windows.go @@ -47,7 +47,7 @@ func isWindowsPipePath(path string) bool { return ok } -func parsePlatformSocketPath(path string) *socketDialer { +func getWindowsPipeDialer(path string) *socketDialer { if isWindowsPipePath(path) { return &socketDialer{path: path, dialer: windowsPipeDialer} }