mirror of
https://github.com/quexten/goldwarden.git
synced 2024-11-27 20:42:13 +03:00
Make ssh sockets close on exit
This commit is contained in:
parent
f5c20905a9
commit
4afd6ef9b1
@ -22,6 +22,7 @@ func (v SSHAgentServer) Serve() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
defer listener.Close()
|
||||||
|
|
||||||
log.Info("SSH Agent listening on %s", path)
|
log.Info("SSH Agent listening on %s", path)
|
||||||
|
|
||||||
|
@ -294,6 +294,7 @@ func StartUnixAgent(path string, runtimeConfig config.RuntimeConfig) error {
|
|||||||
println("listen error", err.Error())
|
println("listen error", err.Error())
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer l.Close()
|
||||||
log.Info("Agent listening on %s...", path)
|
log.Info("Agent listening on %s...", path)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user