sing-box/include/wireguard.go

18 lines
410 B
Go
Raw Normal View History

2024-11-02 00:39:02 +08:00
//go:build with_wireguard
package include
import (
2024-11-21 18:10:41 +08:00
"github.com/sagernet/sing-box/adapter/endpoint"
2024-11-02 00:39:02 +08:00
"github.com/sagernet/sing-box/adapter/outbound"
"github.com/sagernet/sing-box/protocol/wireguard"
)
func registerWireGuardOutbound(registry *outbound.Registry) {
wireguard.RegisterOutbound(registry)
}
2024-11-21 18:10:41 +08:00
func registerWireGuardEndpoint(registry *endpoint.Registry) {
wireguard.RegisterEndpoint(registry)
}