Closed iamsurfing closed 3 years ago
Why, it's two args: https://github.com/ameshkov/dnscrypt/blob/master/client.go#L82
func (c Client) Exchange(m dns.Msg, s ServerInfo) (dns.Msg, time.Duration, error) func (c Client) Dial(stampStr string) (ServerInfo, time.Duration, error)
github.com/ameshkov/dnscrypt@v1.1.0
I do not know why, but IDE ask me.
You're using the old version, use github.com/ameshkov/dnscrypt/v2
Thanks, but I think you can write it to sample code. #9
Makes sense, thank you!
resolverInfo, err := client.Dial(stampStr
reply, err := c.Exchange(&req, resolverInfo))
Now it is 3 args.