Rename SSH agent forwarding helper parsePlatformSocketPath() to getWindowsPipeDialer().
Signed-off-by: Siebe Schaap <siebe@digibites.nl>v0.9
parent
146ea468c9
commit
f3bdb4a784
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue