Skip to content

Commit 3b50caf

Browse files
committed
Add a default local DoH path, print the URLs
1 parent 3b2eeea commit 3b50caf

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dnscrypt-proxy/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func newConfig() Config {
9595
return Config{
9696
LogLevel: int(dlog.LogLevel()),
9797
ListenAddresses: []string{"127.0.0.1:53"},
98+
LocalDoH: LocalDoHConfig{Path: "/dns-query"},
9899
Timeout: 5000,
99100
KeepAlive: 5,
100101
CertRefreshDelay: 240,

dnscrypt-proxy/proxy.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func (proxy *Proxy) addLocalDoHListener(listenAddrStr string) {
185185
}
186186
FileDescriptorNum++
187187

188-
dlog.Noticef("Now listening to %v [DoH]", listenAddrStr)
188+
dlog.Noticef("Now listening to https://%v%v [DoH]", listenAddrStr, proxy.localDoHPath)
189189
go proxy.localDoHListener(listenerTCP.(*net.TCPListener))
190190
}
191191

@@ -324,7 +324,7 @@ func (proxy *Proxy) localDoHListenerFromAddr(listenAddr *net.TCPAddr) error {
324324
if err != nil {
325325
return err
326326
}
327-
dlog.Noticef("Now listening to %v [DoH]", listenAddr)
327+
dlog.Noticef("Now listening to https://%v%v [DoH]", listenAddr, proxy.localDoHPath)
328328
go proxy.localDoHListener(acceptPc)
329329
return nil
330330
}

0 commit comments

Comments
 (0)