Add support for clash DNS query API

This commit is contained in:
世界
2023-02-02 15:58:13 +08:00
parent 1bd3a9144d
commit 41ec2e7944
2 changed files with 83 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ func NewServer(router adapter.Router, logFactory log.ObservableFactory, options
r.Mount("/script", scriptRouter())
r.Mount("/profile", profileRouter())
r.Mount("/cache", cacheRouter())
r.Mount("/dns", dnsRouter(router))
})
if options.ExternalUI != "" {
chiRouter.Group(func(r chi.Router) {