mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
test: add anytls
This commit is contained in:
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user