Rename SSH agent forwarding helper parsePlatformSocketPath() to getWindowsPipeDialer().

Signed-off-by: Siebe Schaap <siebe@digibites.nl>
v0.9
Siebe Schaap 2021-05-27 20:08:31 +02:00
parent 146ea468c9
commit f3bdb4a784
3 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}

View File

@ -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}
}