Skip to content

Commit 4c67e79

Browse files
committed
-list command: print ODoH targets addresses
1 parent 4eeed58 commit 4c67e79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ func (config *Config) printRegisteredServers(proxy *Proxy, jsonOutput bool) erro
757757
var hostAddr string
758758
hostAddr, port = ExtractHostAndPort(addrStr, port)
759759
addrs := make([]string, 0)
760-
if registeredServer.stamp.Proto == stamps.StampProtoTypeDoH && len(registeredServer.stamp.ProviderName) > 0 {
760+
if (registeredServer.stamp.Proto == stamps.StampProtoTypeDoH || registeredServer.stamp.Proto == stamps.StampProtoTypeODoHTarget) && len(registeredServer.stamp.ProviderName) > 0 {
761761
providerName := registeredServer.stamp.ProviderName
762762
var host string
763763
host, port = ExtractHostAndPort(providerName, port)

0 commit comments

Comments
 (0)