mirror of
https://github.com/AdguardTeam/AdGuardDNS.git
synced 2025-02-20 11:23:36 +08:00
28 lines
418 B
Go
28 lines
418 B
Go
package bindtodevice
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
"time"
|
|
)
|
|
|
|
// testTimeout is a common timeout for tests.
|
|
const testTimeout = 1 * time.Second
|
|
|
|
// Common addresses for tests.
|
|
var (
|
|
testLAddr = &net.UDPAddr{
|
|
IP: net.IP{1, 2, 3, 4},
|
|
Port: 53,
|
|
}
|
|
testRAddr = &net.UDPAddr{
|
|
IP: net.IP{5, 6, 7, 8},
|
|
Port: 1234,
|
|
}
|
|
)
|
|
|
|
// Common subnets for tests.
|
|
var (
|
|
testSubnetIPv4 = netip.MustParsePrefix("1.2.3.0/24")
|
|
)
|