Add hosts transport & Remove bad linkname usages

This commit is contained in:
世界
2025-01-25 19:04:12 +08:00
parent 314b25bccf
commit 3fa417f283
22 changed files with 645 additions and 97 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/sagernet/sing-box/dns"
"github.com/sagernet/sing-box/dns/transport"
"github.com/sagernet/sing-box/dns/transport/fakeip"
"github.com/sagernet/sing-box/dns/transport/hosts"
"github.com/sagernet/sing-box/dns/transport/local"
"github.com/sagernet/sing-box/log"
"github.com/sagernet/sing-box/option"
@@ -103,6 +104,7 @@ func DNSTransportRegistry() *dns.TransportRegistry {
transport.RegisterTLS(registry)
transport.RegisterHTTPS(registry)
transport.RegisterPredefined(registry)
hosts.RegisterTransport(registry)
local.RegisterTransport(registry)
fakeip.RegisterTransport(registry)