core: v2ray.com/core/proxy/freedom Index | Files

package freedom

import "v2ray.com/core/proxy/freedom"

Index

Package Files

config.go config.pb.go errors.generated.go freedom.go

Variables

var (
    Config_DomainStrategy_name = map[int32]string{
        0:  "AS_IS",
        1:  "USE_IP",
        2:  "USE_IP4",
        3:  "USE_IP6",
    }
    Config_DomainStrategy_value = map[string]int32{
        "AS_IS":   0,
        "USE_IP":  1,
        "USE_IP4": 2,
        "USE_IP6": 3,
    }
)

Enum value maps for Config_DomainStrategy.

var File_proxy_freedom_config_proto protoreflect.FileDescriptor

type Config Uses

type Config struct {
    DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=v2ray.core.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
    // Deprecated: Do not use.
    Timeout             uint32               `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
    DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
    UserLevel           uint32               `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
    // contains filtered or unexported fields
}

func (*Config) Descriptor Uses

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetDestinationOverride Uses

func (x *Config) GetDestinationOverride() *DestinationOverride

func (*Config) GetDomainStrategy Uses

func (x *Config) GetDomainStrategy() Config_DomainStrategy

func (*Config) GetTimeout Uses

func (x *Config) GetTimeout() uint32

Deprecated: Do not use.

func (*Config) GetUserLevel Uses

func (x *Config) GetUserLevel() uint32

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type Config_DomainStrategy Uses

type Config_DomainStrategy int32
const (
    Config_AS_IS   Config_DomainStrategy = 0
    Config_USE_IP  Config_DomainStrategy = 1
    Config_USE_IP4 Config_DomainStrategy = 2
    Config_USE_IP6 Config_DomainStrategy = 3
)

func (Config_DomainStrategy) Descriptor Uses

func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor

func (Config_DomainStrategy) Enum Uses

func (x Config_DomainStrategy) Enum() *Config_DomainStrategy

func (Config_DomainStrategy) EnumDescriptor Uses

func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use Config_DomainStrategy.Descriptor instead.

func (Config_DomainStrategy) Number Uses

func (x Config_DomainStrategy) Number() protoreflect.EnumNumber

func (Config_DomainStrategy) String Uses

func (x Config_DomainStrategy) String() string

func (Config_DomainStrategy) Type Uses

func (Config_DomainStrategy) Type() protoreflect.EnumType

type DestinationOverride Uses

type DestinationOverride struct {
    Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
    // contains filtered or unexported fields
}

func (*DestinationOverride) Descriptor Uses

func (*DestinationOverride) Descriptor() ([]byte, []int)

Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead.

func (*DestinationOverride) GetServer Uses

func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint

func (*DestinationOverride) ProtoMessage Uses

func (*DestinationOverride) ProtoMessage()

func (*DestinationOverride) ProtoReflect Uses

func (x *DestinationOverride) ProtoReflect() protoreflect.Message

func (*DestinationOverride) Reset Uses

func (x *DestinationOverride) Reset()

func (*DestinationOverride) String Uses

func (x *DestinationOverride) String() string

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields
}

Handler handles Freedom connections.

func (*Handler) Init Uses

func (h *Handler) Init(config *Config, pm policy.Manager, d dns.Client) error

Init initializes the Handler with necessary parameters.

func (*Handler) Process Uses

func (h *Handler) Process(ctx context.Context, link *transport.Link, dialer internet.Dialer) error

Process implements proxy.Outbound.

Package freedom imports 22 packages (graph) and is imported by 13 packages. Updated 2020-10-15. Refresh now. Tools for package owners.