Files
sing-box-extended-mirror/include/quic.go
T

33 lines
961 B
Go
Raw Normal View History

2022-09-14 12:46:02 +08:00
//go:build with_quic
package include
2022-09-26 19:37:06 +08:00
import (
2024-11-02 00:39:02 +08:00
"github.com/sagernet/sing-box/adapter/inbound"
"github.com/sagernet/sing-box/adapter/outbound"
2025-03-16 14:50:44 +08:00
"github.com/sagernet/sing-box/dns"
"github.com/sagernet/sing-box/dns/transport/quic"
2024-11-02 00:39:02 +08:00
"github.com/sagernet/sing-box/protocol/hysteria"
"github.com/sagernet/sing-box/protocol/hysteria2"
_ "github.com/sagernet/sing-box/protocol/naive/quic"
"github.com/sagernet/sing-box/protocol/tuic"
2022-09-26 19:37:06 +08:00
_ "github.com/sagernet/sing-box/transport/v2rayquic"
)
2024-11-02 00:39:02 +08:00
func registerQUICInbounds(registry *inbound.Registry) {
hysteria.RegisterInbound(registry)
tuic.RegisterInbound(registry)
hysteria2.RegisterInbound(registry)
}
func registerQUICOutbounds(registry *outbound.Registry) {
hysteria.RegisterOutbound(registry)
tuic.RegisterOutbound(registry)
hysteria2.RegisterOutbound(registry)
}
2025-03-16 14:50:44 +08:00
func registerQUICTransports(registry *dns.TransportRegistry) {
quic.RegisterTransport(registry)
quic.RegisterHTTP3Transport(registry)
}