Add sing-box API service

This commit is contained in:
世界
2026-06-11 21:11:10 +08:00
parent fca959f62a
commit a485967957
36 changed files with 2075 additions and 849 deletions
+2
View File
@@ -36,6 +36,7 @@ import (
"github.com/sagernet/sing-box/protocol/tun"
"github.com/sagernet/sing-box/protocol/vless"
"github.com/sagernet/sing-box/protocol/vmess"
"github.com/sagernet/sing-box/service/api"
originca "github.com/sagernet/sing-box/service/origin_ca"
"github.com/sagernet/sing-box/service/resolved"
"github.com/sagernet/sing-box/service/ssmapi"
@@ -133,6 +134,7 @@ func DNSTransportRegistry() *dns.TransportRegistry {
func ServiceRegistry() *service.Registry {
registry := service.NewRegistry()
api.RegisterService(registry)
resolved.RegisterService(registry)
ssmapi.RegisterService(registry)