Andrey Meshkov 5de1a253fc Sync v2.1.1
2022-11-07 10:21:24 +03:00

14 lines
292 B
Go

//go:build windows
package dnsservertest
import (
"github.com/AdguardTeam/golibs/errors"
"golang.org/x/sys/windows"
)
// errorIsAddrInUse returns true if err is an address already in use error.
func errorIsAddrInUse(err error) (ok bool) {
return errors.Is(err, windows.WSAEADDRINUSE)
}