Merge pull request #5 from stitchrs/dev_remoteDns

feat: remote dns configs
This commit is contained in:
Yuzuki
2023-08-02 15:22:05 +08:00
committed by GitHub
5 changed files with 73 additions and 37 deletions

View File

@@ -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)