feat: remote dns for sing

This commit is contained in:
cubemaze
2023-09-21 12:34:03 +08:00
parent b85a78209a
commit cecfffd081
10 changed files with 136 additions and 16 deletions

View File

@@ -85,9 +85,10 @@ func serverHandle(_ *cobra.Command, _ []string) {
return
}
log.Info("Nodes started")
dns := os.Getenv("XRAY_DNS_PATH")
xdns := os.Getenv("XRAY_DNS_PATH")
sdns := os.Getenv("SING_DNS_PATH")
if watch {
err = c.Watch(config, dns, func() {
err = c.Watch(config, xdns, sdns, func() {
nodes.Close()
err = vc.Close()
if err != nil {