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",
}
var Config_DomainStrategy_value = map[string]int32{
    "AS_IS":   0,
    "USE_IP":  1,
    "USE_IP4": 2,
    "USE_IP6": 3,
}

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"`
    Timeout              uint32                `protobuf:"varint,2,opt,name=timeout,proto3" json:"timeout,omitempty"` // Deprecated: Do not use.
    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"`
    XXX_NoUnkeyedLiteral struct{}              `json:"-"`
    XXX_unrecognized     []byte                `json:"-"`
    XXX_sizecache        int32                 `json:"-"`
}

func (*Config) Descriptor Uses

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

func (*Config) GetDestinationOverride Uses

func (m *Config) GetDestinationOverride() *DestinationOverride

func (*Config) GetDomainStrategy Uses

func (m *Config) GetDomainStrategy() Config_DomainStrategy

func (*Config) GetTimeout Uses

func (m *Config) GetTimeout() uint32

Deprecated: Do not use.

func (*Config) GetUserLevel Uses

func (m *Config) GetUserLevel() uint32

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) Reset Uses

func (m *Config) Reset()

func (*Config) String Uses

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown Uses

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal Uses

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge Uses

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size Uses

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal Uses

func (m *Config) XXX_Unmarshal(b []byte) error

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) EnumDescriptor Uses

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

func (Config_DomainStrategy) String Uses

func (x Config_DomainStrategy) String() string

type DestinationOverride Uses

type DestinationOverride struct {
    Server               *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
    XXX_unrecognized     []byte                   `json:"-"`
    XXX_sizecache        int32                    `json:"-"`
}

func (*DestinationOverride) Descriptor Uses

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

func (*DestinationOverride) GetServer Uses

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

func (*DestinationOverride) ProtoMessage Uses

func (*DestinationOverride) ProtoMessage()

func (*DestinationOverride) Reset Uses

func (m *DestinationOverride) Reset()

func (*DestinationOverride) String Uses

func (m *DestinationOverride) String() string

func (*DestinationOverride) XXX_DiscardUnknown Uses

func (m *DestinationOverride) XXX_DiscardUnknown()

func (*DestinationOverride) XXX_Marshal Uses

func (m *DestinationOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestinationOverride) XXX_Merge Uses

func (m *DestinationOverride) XXX_Merge(src proto.Message)

func (*DestinationOverride) XXX_Size Uses

func (m *DestinationOverride) XXX_Size() int

func (*DestinationOverride) XXX_Unmarshal Uses

func (m *DestinationOverride) XXX_Unmarshal(b []byte) error

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 20 packages (graph) and is imported by 7 packages. Updated 2019-04-05. Refresh now. Tools for package owners.