Add a default local DoH path, print the URLs

This commit is contained in:
Frank Denis 2019-11-29 08:53:13 +01:00
parent 3b2eeea544
commit 3b50caf4cd
2 changed files with 3 additions and 2 deletions

View File

@ -95,6 +95,7 @@ func newConfig() Config {
return Config{
LogLevel: int(dlog.LogLevel()),
ListenAddresses: []string{"127.0.0.1:53"},
LocalDoH: LocalDoHConfig{Path: "/dns-query"},
Timeout: 5000,
KeepAlive: 5,
CertRefreshDelay: 240,

View File

@ -185,7 +185,7 @@ func (proxy *Proxy) addLocalDoHListener(listenAddrStr string) {
}
FileDescriptorNum++
dlog.Noticef("Now listening to %v [DoH]", listenAddrStr)
dlog.Noticef("Now listening to https://%v%v [DoH]", listenAddrStr, proxy.localDoHPath)
go proxy.localDoHListener(listenerTCP.(*net.TCPListener))
}
@ -324,7 +324,7 @@ func (proxy *Proxy) localDoHListenerFromAddr(listenAddr *net.TCPAddr) error {
if err != nil {
return err
}
dlog.Noticef("Now listening to %v [DoH]", listenAddr)
dlog.Noticef("Now listening to https://%v%v [DoH]", listenAddr, proxy.localDoHPath)
go proxy.localDoHListener(acceptPc)
return nil
}