Add a default local DoH path, print the URLs
This commit is contained in:
parent
3b2eeea544
commit
3b50caf4cd
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue