mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-02 03:17:35 +03:00
22 lines
555 B
Go
22 lines
555 B
Go
//go:build with_tailscale
|
|
|
|
package include
|
|
|
|
import (
|
|
"github.com/sagernet/sing-box/adapter/endpoint"
|
|
"github.com/sagernet/sing-box/adapter/inbound"
|
|
"github.com/sagernet/sing-box/dns"
|
|
"github.com/sagernet/sing-box/protocol/tailscale"
|
|
)
|
|
|
|
func registerTailscaleInbound(registry *inbound.Registry) {
|
|
tailscale.RegisterDERPInbound(registry)
|
|
}
|
|
|
|
func registerTailscaleEndpoint(registry *endpoint.Registry) {
|
|
tailscale.RegisterEndpoint(registry)
|
|
}
|
|
|
|
func registerTailscaleTransport(registry *dns.TransportRegistry) {
|
|
tailscale.RegistryTransport(registry)
|
|
}
|