mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 00:21:30 +00:00
27 lines
774 B
Go
27 lines
774 B
Go
//go:build with_quic
|
|
|
|
package include
|
|
|
|
import (
|
|
"github.com/sagernet/sing-box/adapter/inbound"
|
|
"github.com/sagernet/sing-box/adapter/outbound"
|
|
"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"
|
|
_ "github.com/sagernet/sing-box/transport/v2rayquic"
|
|
_ "github.com/sagernet/sing-dns/quic"
|
|
)
|
|
|
|
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)
|
|
}
|