Versions in this module Expand all Collapse all v24 v24.12.6 Dec 6, 2024 Changes in this version + var DeviceConfig_DomainStrategy_name = map[int32]string + var DeviceConfig_DomainStrategy_value = map[string]int32 + var File_proxy_wireguard_config_proto protoreflect.FileDescriptor + func CalculateInterfaceName(name string) (tunName string) + func KernelTunSupported() (bool, error) + type DeviceConfig struct + DomainStrategy DeviceConfig_DomainStrategy + Endpoint []string + IsClient bool + Mtu int32 + NoKernelTun bool + NumWorkers int32 + Peers []*PeerConfig + Reserved []byte + SecretKey string + func (*DeviceConfig) Descriptor() ([]byte, []int) + func (*DeviceConfig) ProtoMessage() + func (x *DeviceConfig) GetDomainStrategy() DeviceConfig_DomainStrategy + func (x *DeviceConfig) GetEndpoint() []string + func (x *DeviceConfig) GetIsClient() bool + func (x *DeviceConfig) GetMtu() int32 + func (x *DeviceConfig) GetNoKernelTun() bool + func (x *DeviceConfig) GetNumWorkers() int32 + func (x *DeviceConfig) GetPeers() []*PeerConfig + func (x *DeviceConfig) GetReserved() []byte + func (x *DeviceConfig) GetSecretKey() string + func (x *DeviceConfig) ProtoReflect() protoreflect.Message + func (x *DeviceConfig) Reset() + func (x *DeviceConfig) String() string + type DeviceConfig_DomainStrategy int32 + const DeviceConfig_FORCE_IP + const DeviceConfig_FORCE_IP4 + const DeviceConfig_FORCE_IP46 + const DeviceConfig_FORCE_IP6 + const DeviceConfig_FORCE_IP64 + func (DeviceConfig_DomainStrategy) Descriptor() protoreflect.EnumDescriptor + func (DeviceConfig_DomainStrategy) EnumDescriptor() ([]byte, []int) + func (DeviceConfig_DomainStrategy) Type() protoreflect.EnumType + func (x DeviceConfig_DomainStrategy) Enum() *DeviceConfig_DomainStrategy + func (x DeviceConfig_DomainStrategy) Number() protoreflect.EnumNumber + func (x DeviceConfig_DomainStrategy) String() string + type Handler struct + func New(ctx context.Context, conf *DeviceConfig) (*Handler, error) + func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error + type PeerConfig struct + AllowedIps []string + Endpoint string + KeepAlive uint32 + PreSharedKey string + PublicKey string + func (*PeerConfig) Descriptor() ([]byte, []int) + func (*PeerConfig) ProtoMessage() + func (x *PeerConfig) GetAllowedIps() []string + func (x *PeerConfig) GetEndpoint() string + func (x *PeerConfig) GetKeepAlive() uint32 + func (x *PeerConfig) GetPreSharedKey() string + func (x *PeerConfig) GetPublicKey() string + func (x *PeerConfig) ProtoReflect() protoreflect.Message + func (x *PeerConfig) Reset() + func (x *PeerConfig) String() string + type Server struct + func NewServer(ctx context.Context, conf *DeviceConfig) (*Server, error) + func (*Server) Network() []net.Network + func (s *Server) Process(ctx context.Context, network net.Network, conn stat.Connection, ...) error + type Tunnel interface + BuildDevice func(ipc string, bind conn.Bind) error + Close func() error + DialContextTCPAddrPort func(ctx context.Context, addr netip.AddrPort) (net.Conn, error) + DialUDPAddrPort func(laddr, raddr netip.AddrPort) (net.Conn, error) Other modules containing this package github.com/morooi/xray-core