1
1
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-11-19 15:53:50 +01:00

Don't print nil connection errors

This commit is contained in:
Simon Ser 2023-02-20 14:40:44 +01:00
parent d314adee59
commit 60cab19e46

@ -262,6 +262,9 @@ func (ln *Listener) serve() error {
go func() {
err := ln.handle(conn)
if err == nil {
return
}
srv := ln.atomic.Load().(*listenerHandles).Server
var clientErr clientError
if !errors.As(err, &clientErr) || srv.Debug {