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

14 lines
280 B
Go

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