1
1
Fork 0
mirror of https://git.sr.ht/~emersion/tlstunnel synced 2024-04-28 04:45:01 +02: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

View File

@ -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 {