mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 01:08:33 +00:00
Enhance DNS and Dialer (#341)
This commit is contained in:
parent
ad1807dd99
commit
db32ce6fd9
22 changed files with 682 additions and 290 deletions
|
@ -19,6 +19,7 @@ type LogConfig struct {
|
|||
AccessLog string `json:"access"`
|
||||
ErrorLog string `json:"error"`
|
||||
LogLevel string `json:"loglevel"`
|
||||
DNSLog bool `json:"dnsLog"`
|
||||
}
|
||||
|
||||
func (v *LogConfig) Build() *log.Config {
|
||||
|
@ -28,6 +29,7 @@ func (v *LogConfig) Build() *log.Config {
|
|||
config := &log.Config{
|
||||
ErrorLogType: log.LogType_Console,
|
||||
AccessLogType: log.LogType_Console,
|
||||
EnableDnsLog: v.DNSLog,
|
||||
}
|
||||
|
||||
if v.AccessLog == "none" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue