mirror of
https://github.com/AdguardTeam/AdGuardDNS.git
synced 2025-02-20 11:23:36 +08:00
14 lines
292 B
Go
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)
|
|
}
|