feat: remote dns config

This commit is contained in:
cubemaze committed 2023-07-20 15:25:34 +08:00
1 parent 7a1be2e594
commit a67ef8f692
4 files changed
+52 -6

No files matched your search

+2 -1
View File
@@ -64,8 +64,9 @@ func serverHandle(_ *cobra.Command, _ []string) {
log.WithField("err", err).Error("Run nodes failed")
return
}
dns := os.Getenv("XRAY_DNS_PATH")
if watch {
err = c.Watch(config, func() {
err = c.Watch(config, dns, func() {
nodes.Close()
err = vc.Close()
if err != nil {