mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-05-22 20:29:51 +03:00
refactor: DNS
This commit is contained in:
@@ -5,12 +5,13 @@ package include
|
||||
import (
|
||||
"github.com/sagernet/sing-box/adapter/inbound"
|
||||
"github.com/sagernet/sing-box/adapter/outbound"
|
||||
"github.com/sagernet/sing-box/dns"
|
||||
"github.com/sagernet/sing-box/dns/transport/quic"
|
||||
"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) {
|
||||
@@ -24,3 +25,8 @@ func registerQUICOutbounds(registry *outbound.Registry) {
|
||||
tuic.RegisterOutbound(registry)
|
||||
hysteria2.RegisterOutbound(registry)
|
||||
}
|
||||
|
||||
func registerQUICTransports(registry *dns.TransportRegistry) {
|
||||
quic.RegisterTransport(registry)
|
||||
quic.RegisterHTTP3Transport(registry)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user