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

@@ -354,6 +354,15 @@ func getInboundOptions(tag string, info *panel.NodeInfo, c *conf.Options) (optio
TLS: &tls,
},
}
case "anytls":
in.Type = "anytls"
in.Options = &option.AnyTLSInboundOptions{
ListenOptions: listen,
PaddingScheme: info.AnyTls.PaddingScheme,
InboundTLSOptionsContainer: option.InboundTLSOptionsContainer{
TLS: &tls,
},
}
case "hysteria":
in.Type = "hysteria"
in.Options = &option.HysteriaInboundOptions{