mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 14:17:36 +03:00
use global 'timeout' option for forwarding queries (#1284)
* Update plugins.go * Update plugin_forward.go
This commit is contained in:
parent
4f41fc3fee
commit
f71244ed74
2 changed files with 3 additions and 1 deletions
|
@ -87,6 +87,7 @@ type PluginsState struct {
|
|||
returnCode PluginsReturnCode
|
||||
serverName string
|
||||
serverProto string
|
||||
timeout time.Duration
|
||||
}
|
||||
|
||||
func (proxy *Proxy) InitPluginsGlobals() error {
|
||||
|
@ -240,6 +241,7 @@ func NewPluginsState(proxy *Proxy, clientProto string, clientAddr *net.Addr, ser
|
|||
qName: "",
|
||||
serverName: "-",
|
||||
serverProto: serverProto,
|
||||
timeout: proxy.timeout,
|
||||
requestStart: start,
|
||||
maxUnencryptedUDPSafePayloadSize: MaxDNSUDPSafePacketSize,
|
||||
sessionData: make(map[string]interface{}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue