Skip to content

Commit

Permalink
Rename SSH agent forwarding helper parsePlatformSocketPath() to getWi…
Browse files Browse the repository at this point in the history
…ndowsPipeDialer().
  • Loading branch information
sschaap committed May 27, 2021
1 parent 3e093bd commit cedc947
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion session/sshforward/sshprovider/agentprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion session/sshforward/sshprovider/agentprovider_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion session/sshforward/sshprovider/agentprovider_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}
Expand Down

0 comments on commit cedc947

Please sign in to comment.