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)
|
2025-06-01 22:06:34 +03:00
|
|
|
wireguard.RegisterWarpEndpoint(registry)
|
2024-11-21 18:10:41 +08:00
|
|
|
}
|