Add Tailscale endpoint

This commit is contained in:
世界 2025-02-12 20:09:21 +08:00
parent 76d1f8cf5c
commit 1ac3b3565f
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
23 changed files with 1269 additions and 51 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)
}