fix(https): fail https
This commit is contained in:
@@ -227,7 +227,7 @@ func createClient(scheme, host, port, path string, opts Options) (DNSClient, err
|
|||||||
logger.Debug("Creating DO53 client with config: %+v", config)
|
logger.Debug("Creating DO53 client with config: %+v", config)
|
||||||
return do53.New(config)
|
return do53.New(config)
|
||||||
|
|
||||||
case "http", "doh":
|
case "https", "doh":
|
||||||
config := doh.Config{
|
config := doh.Config{
|
||||||
Host: host,
|
Host: host,
|
||||||
Port: port,
|
Port: port,
|
||||||
@@ -239,7 +239,7 @@ func createClient(scheme, host, port, path string, opts Options) (DNSClient, err
|
|||||||
logger.Debug("Creating DoH client with config: %+v", config)
|
logger.Debug("Creating DoH client with config: %+v", config)
|
||||||
return doh.New(config)
|
return doh.New(config)
|
||||||
|
|
||||||
case "https", "doh3":
|
case "doh3":
|
||||||
config := doh.Config{
|
config := doh.Config{
|
||||||
Host: host,
|
Host: host,
|
||||||
Port: port,
|
Port: port,
|
||||||
|
|||||||
Reference in New Issue
Block a user