ameshkov / dnscrypt

DNSCrypt v2 protocol implementation + a command-line tool
The Unlicense
74 stars 14 forks source link

You should update your document. #8

Closed iamsurfing closed 3 years ago

iamsurfing commented 3 years ago

resolverInfo, err := client.Dial(stampStr reply, err := c.Exchange(&req, resolverInfo))

Now it is 3 args.

ameshkov commented 3 years ago

Why, it's two args: https://github.com/ameshkov/dnscrypt/blob/master/client.go#L82

iamsurfing commented 3 years ago

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 3 years ago

You're using the old version, use github.com/ameshkov/dnscrypt/v2

iamsurfing commented 3 years ago

Thanks, but I think you can write it to sample code. #9

ameshkov commented 3 years ago

Makes sense, thank you!