feat: remote dns configs

This commit is contained in:
cubemaze committed 2023-07-30 21:58:55 +08:00
1 parent a18cd2f134
commit edfda22766
4 files changed
+71 -35

No files matched your search

+1 -1
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)