mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
feat: remote dns configs
This commit is contained in:
@@ -67,7 +67,7 @@ func getCore(c *conf.XrayConfig) *core.Instance {
|
||||
log.WithField("err", err).Panic("Failed to read DNS config file")
|
||||
} else {
|
||||
if err = json.NewDecoder(f).Decode(coreDnsConfig); err != nil {
|
||||
log.WithField("err", err).Panic("Failed to unmarshal DNS config")
|
||||
log.WithField("err", err).Error("Failed to unmarshal DNS config")
|
||||
}
|
||||
}
|
||||
os.Setenv("XRAY_DNS_PATH", c.DnsConfigPath)
|
||||
|
||||
Reference in New Issue
Block a user