fix: nil TLSConfig for DoTClientOptions

This commit is contained in:
Toby
2022-10-23 16:50:39 -07:00
parent 919fbb7152
commit f92c2cdda7

View File

@@ -1,6 +1,7 @@
package main
import (
"crypto/tls"
"errors"
"net"
"net/url"
@@ -84,6 +85,7 @@ func setResolver(dns string) error {
}
client, err := rdns.NewDoTClient("dot", dns, rdns.DoTClientOptions{
BootstrapAddr: dotIPAddr.String(),
TLSConfig: new(tls.Config),
})
if err != nil {
return err