Răsfoiți Sursa

Hide dns outbound in clash-dashboard

世界 3 ani în urmă
părinte
comite
83154eadd3
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      experimental/clashapi/proxies.go

+ 1 - 1
experimental/clashapi/proxies.go

@@ -108,7 +108,7 @@ func getProxies(server *Server, router adapter.Router) func(w http.ResponseWrite
 
 		for _, detour := range outbounds {
 			switch detour.Type() {
-			case C.TypeDirect, C.TypeBlock:
+			case C.TypeDirect, C.TypeBlock, C.TypeDNS:
 				continue
 			}
 			allProxies = append(allProxies, detour.Tag())