Fixed warning.

This commit is contained in:
Benjamin Erhart
2026-03-11 15:45:18 +01:00
parent 743dad1f5c
commit 0bb20c1113
+2 -1
View File
@@ -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
}