mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-24 09:18:27 +00:00
#2643 ## Implementation 1. Add platform-aware identity-agent dialing: on Window, default to `//./pipe/openssh-ssh-agent`. 2. Keep Unix agent dialing via Unix sockets; unify agent resolution across platforms. 3. Add cross-platform unit tests covering dialer selection and failure paths.
16 lines
310 B
Go
16 lines
310 B
Go
//go:build windows
|
|
|
|
package remote
|
|
|
|
import (
|
|
"net"
|
|
"time"
|
|
|
|
"github.com/Microsoft/go-winio"
|
|
)
|
|
|
|
// dialIdentityAgent connects to the Windows OpenSSH agent named pipe.
|
|
func dialIdentityAgent(agentPath string) (net.Conn, error) {
|
|
timeout := 500 * time.Millisecond
|
|
return winio.DialPipe(agentPath, &timeout)
|
|
}
|