Fix ssh daemon on windows
This commit is contained in:
parent
1e24bce546
commit
599cc1003f
|
@ -3,6 +3,7 @@
|
||||||
package ssh
|
package ssh
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/Microsoft/go-winio"
|
||||||
"github.com/quexten/goldwarden/agent/sockets"
|
"github.com/quexten/goldwarden/agent/sockets"
|
||||||
"golang.org/x/crypto/ssh/agent"
|
"golang.org/x/crypto/ssh/agent"
|
||||||
)
|
)
|
||||||
|
@ -15,7 +16,7 @@ func (v SSHAgentServer) Serve() {
|
||||||
log.Fatal("listen error:", err)
|
log.Fatal("listen error:", err)
|
||||||
}
|
}
|
||||||
defer l.Close()
|
defer l.Close()
|
||||||
log.Printf("Server listening on named pipe %v\n", pipePath)
|
log.Info("Server listening on named pipe %v\n", pipePath)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
conn, err := l.Accept()
|
conn, err := l.Accept()
|
||||||
|
|
Loading…
Reference in New Issue