mirror of
https://github.com/libp2p/go-openssl.git
synced 2025-01-30 05:20:08 +08:00
space monkey internal commit export
[katamari commit: cdc11d04d5c47e79a1c5754c935fbc9395e5ecdc]
This commit is contained in:
parent
82663aa776
commit
3124c9db31
7
net.go
7
net.go
@ -17,7 +17,12 @@ func (l *listener) Accept() (c net.Conn, err error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return Server(c, l.ctx)
|
||||
ssl_c, err := Server(c, l.ctx)
|
||||
if err != nil {
|
||||
c.Close()
|
||||
return nil, err
|
||||
}
|
||||
return ssl_c, nil
|
||||
}
|
||||
|
||||
// NewListener wraps an existing net.Listener such that all accepted
|
||||
|
Loading…
Reference in New Issue
Block a user