mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-01 03:18:13 +03:00
I was still getting "io: read/write on closed pipe" errors in the logs, even after comparing errors against io.ErrClosedPipe to skip logging them. It turns out that kcp-go wraps many of its errors in another type. The actual type of the errors was *errors.withStack, where errors is https://github.com/pkg/errors. We can use the go1.13 errors interface (https://blog.golang.org/go1.13-errors) to get at the value inside.