diff --git a/README.md b/README.md index 3da6d23..e62d962 100644 --- a/README.md +++ b/README.md @@ -136,13 +136,13 @@ You can also send a DNSCrypt request using a command that does not require stamp ```go // AdGuard DNS stamp -stampStr := "sdns://AQIAAAAAAAAAFDE3Ni4xMDMuMTMwLjEzMDo1NDQzINErR_JS3PLCu_iZEIbq95zkSV2LFsigxDIuUso_OQhzIjIuZG5zY3J5cHQuZGVmYXVsdC5uczEuYWRndWFyZC5jb20" +stampStr := "sdns://AQMAAAAAAAAAETk0LjE0MC4xNC4xNDo1NDQzINErR_JS3PLCu_iZEIbq95zkSV2LFsigxDIuUso_OQhzIjIuZG5zY3J5cHQuZGVmYXVsdC5uczEuYWRndWFyZC5jb20" // Initializing the DNSCrypt client c := dnscrypt.Client{Net: "udp", Timeout: 10 * time.Second} // Fetching and validating the server certificate -resolverInfo, err := client.Dial(stampStr) +resolverInfo, err := c.Dial(stampStr) if err != nil { return err } @@ -152,7 +152,11 @@ req := dns.Msg{} req.Id = dns.Id() req.RecursionDesired = true req.Question = []dns.Question{ - {Name: "google-public-dns-a.google.com.", Qtype: dns.TypeA, Qclass: dns.ClassINET}, + { + Name: "google-public-dns-a.google.com.", + Qtype: dns.TypeA, + Qclass: dns.ClassINET, + }, } // Get the DNS response diff --git a/doc.go b/doc.go index 15e73dd..b60141f 100644 --- a/doc.go +++ b/doc.go @@ -4,13 +4,13 @@ Package dnscrypt includes everything you need to work with DNSCrypt. You can run Here's how to create a simple DNSCrypt client: // AdGuard DNS stamp - stampStr := "sdns://AQIAAAAAAAAAFDE3Ni4xMDMuMTMwLjEzMDo1NDQzINErR_JS3PLCu_iZEIbq95zkSV2LFsigxDIuUso_OQhzIjIuZG5zY3J5cHQuZGVmYXVsdC5uczEuYWRndWFyZC5jb20" + stampStr := "sdns://AQMAAAAAAAAAETk0LjE0MC4xNC4xNDo1NDQzINErR_JS3PLCu_iZEIbq95zkSV2LFsigxDIuUso_OQhzIjIuZG5zY3J5cHQuZGVmYXVsdC5uczEuYWRndWFyZC5jb20" // Initializing the DNSCrypt client c := dnscrypt.Client{Net: "udp", Timeout: 10 * time.Second} // Fetching and validating the server certificate - resolverInfo, err := client.Dial(stampStr) + resolverInfo, err := c.Dial(stampStr) if err != nil { return err }