test: Add Tuic

This commit is contained in:
wyx2685
2025-04-30 07:50:41 +09:00
parent 6a95d576f1
commit d200a3336e
6 changed files with 46 additions and 2 deletions

View File

@@ -343,6 +343,17 @@ func getInboundOptions(tag string, info *panel.NodeInfo, c *conf.Options) (optio
}
}
in.Options = trojanoption
case "tuic":
in.Type = "tuic"
tls.ALPN = append(tls.ALPN, "h3")
in.Options = &option.TUICInboundOptions{
ListenOptions: listen,
CongestionControl: info.Tuic.CongestionControl,
ZeroRTTHandshake: info.Tuic.ZeroRTTHandshake,
InboundTLSOptionsContainer: option.InboundTLSOptionsContainer{
TLS: &tls,
},
}
case "hysteria":
in.Type = "hysteria"
in.Options = &option.HysteriaInboundOptions{