Browse Source

Hide dns outbound in clash-dashboard

世界 3 năm trước cách đây
mục cha
commit
83154eadd3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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())