mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-09-10 02:11:48 +00:00
fix: nil TLSConfig for DoTClientOptions
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"crypto/tls"
|
||||||
"errors"
|
"errors"
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
@@ -84,6 +85,7 @@ func setResolver(dns string) error {
|
|||||||
}
|
}
|
||||||
client, err := rdns.NewDoTClient("dot", dns, rdns.DoTClientOptions{
|
client, err := rdns.NewDoTClient("dot", dns, rdns.DoTClientOptions{
|
||||||
BootstrapAddr: dotIPAddr.String(),
|
BootstrapAddr: dotIPAddr.String(),
|
||||||
|
TLSConfig: new(tls.Config),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user