test: add anytls

This commit is contained in:
wyx2685
2025-05-24 08:33:36 +09:00
parent d200a3336e
commit a68378670f
10 changed files with 209 additions and 179 deletions

View File

@@ -37,7 +37,7 @@ func init() {
func New(c *conf.CoreConfig) (vCore.Core, error) {
ctx := context.Background()
ctx = box.Context(ctx, include.InboundRegistry(), include.OutboundRegistry(), include.EndpointRegistry(), include.DNSTransportRegistry())
ctx = box.Context(ctx, include.InboundRegistry(), include.OutboundRegistry(), include.EndpointRegistry(), include.DNSTransportRegistry(), include.ServiceRegistry())
options := option.Options{}
if len(c.SingConfig.OriginalPath) != 0 {
data, err := os.ReadFile(c.SingConfig.OriginalPath)
@@ -72,7 +72,7 @@ func New(c *conf.CoreConfig) (vCore.Core, error) {
return nil, err
}
hs := NewHookServer()
b.Router().SetTracker(hs)
b.Router().AppendTracker(hs)
return &Sing{
ctx: b.Router().GetCtx(),
box: b,
@@ -97,6 +97,7 @@ func (b *Sing) Protocols() []string {
"shadowsocks",
"trojan",
"tuic",
"anytls",
"hysteria",
"hysteria2",
}