Files
sing-box-extended/include/wireguard.go

15 lines
337 B
Go

//go:build with_wireguard
package include
import (
"github.com/sagernet/sing-box/adapter/endpoint"
"github.com/sagernet/sing-box/protocol/warp"
"github.com/sagernet/sing-box/protocol/wireguard"
)
func registerWireGuardEndpoint(registry *endpoint.Registry) {
wireguard.RegisterEndpoint(registry)
warp.RegisterEndpoint(registry)
}