You should update your document.
iamsurfing opened this issue · 5 comments
iamsurfing commented
resolverInfo, err := client.Dial(stampStr
reply, err := c.Exchange(&req, resolverInfo))
Now it is 3 args.
ameshkov commented
Why, it's two args: https://github.com/ameshkov/dnscrypt/blob/master/client.go#L82
iamsurfing commented
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.
ameshkov commented
You're using the old version, use github.com/ameshkov/dnscrypt/v2
iamsurfing commented
Thanks, but I think you can write it to sample code. #9
ameshkov commented
Makes sense, thank you!