瀏覽代碼

Hide dns outbound in clash-dashboard

世界 3 年之前
父節點
當前提交
83154eadd3
共有 1 個文件被更改,包括 1 次插入1 次删除
  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())