parent
e57bf427e6
commit
0f8c7717de
|
@ -17,10 +17,12 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const dnsTimeout time.Duration = 2 * time.Second
|
const (
|
||||||
const tcpIdleTimeout time.Duration = 8 * time.Second
|
dnsTimeout time.Duration = 2 * time.Second
|
||||||
|
tcpIdleTimeout time.Duration = 8 * time.Second
|
||||||
|
|
||||||
const dohMimeType = "application/dns-udpwireformat"
|
dohMimeType = "application/dns-message"
|
||||||
|
)
|
||||||
|
|
||||||
// A Conn represents a connection to a DNS server.
|
// A Conn represents a connection to a DNS server.
|
||||||
type Conn struct {
|
type Conn struct {
|
||||||
|
|
Loading…
Reference in New Issue