From 0bb20c11136434029b2af924e4bdca3e2b008787 Mon Sep 17 00:00:00 2001 From: Benjamin Erhart Date: Wed, 11 Mar 2026 15:42:45 +0100 Subject: [PATCH] Fixed warning. --- dnstt-client/lib/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnstt-client/lib/client.go b/dnstt-client/lib/client.go index 9dd3a9b..4769a00 100644 --- a/dnstt-client/lib/client.go +++ b/dnstt-client/lib/client.go @@ -128,7 +128,8 @@ func AcceptLoop(ln *pt.SocksListener, utlsClientHelloID *utls.ClientHelloID, shu local, err := ln.AcceptSocks() if err != nil { //goland:noinspection GoDeprecation - if err, ok := err.(net.Error); ok && err.Temporary() { + var netErr net.Error + if errors.As(netErr, &err) && netErr.Temporary() { continue }