feat: remote dns config

This commit is contained in:
cubemaze
2023-07-19 12:03:09 +08:00
parent 7a1be2e594
commit a67ef8f692
4 changed files with 52 additions and 6 deletions

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 {