Add Tailscale endpoint

This commit is contained in:
世界 2025-02-12 20:09:21 +08:00
parent 6ec2bda264
commit 5e1a15e99c
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
19 changed files with 1175 additions and 48 deletions

17
include/tailscale.go Normal file
View file

@ -0,0 +1,17 @@
//go:build with_tailscale
package include
import (
"github.com/sagernet/sing-box/adapter/endpoint"
"github.com/sagernet/sing-box/dns"
"github.com/sagernet/sing-box/protocol/tailscale"
)
func registerTailscaleEndpoint(registry *endpoint.Registry) {
tailscale.RegisterEndpoint(registry)
}
func registerTailscaleTransport(registry *dns.TransportRegistry) {
tailscale.RegistryTransport(registry)
}