mirror of
https://github.com/tladesignz/dnstt.git
synced 2026-10-12 09:08:27 +03:00
Fixed warning.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user