proxy

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Obfs_name = map[int32]string{
		0: "Salamander",
	}
	Obfs_value = map[string]int32{
		"Salamander": 0,
	}
)

Enum value maps for Obfs.

View Source
var (
	ShadowsocksCipherType_name = map[int32]string{
		0: "AES_128_GCM",
		1: "AES_256_GCM",
		2: "CHACHA20_POLY1305",
		3: "NONE",
	}
	ShadowsocksCipherType_value = map[string]int32{
		"AES_128_GCM":       0,
		"AES_256_GCM":       1,
		"CHACHA20_POLY1305": 2,
		"NONE":              3,
	}
)

Enum value maps for ShadowsocksCipherType.

View Source
var (
	AuthType_name = map[int32]string{
		0: "NO_AUTH",
		1: "PASSWORD",
	}
	AuthType_value = map[string]int32{
		"NO_AUTH":  0,
		"PASSWORD": 1,
	}
)

Enum value maps for AuthType.

View Source
var (
	SecurityType_name = map[int32]string{
		0: "SecurityType_UNKNOWN",
		1: "SecurityType_LEGACY",
		2: "SecurityType_AUTO",
		3: "SecurityType_AES128_GCM",
		4: "SecurityType_CHACHA20_POLY1305",
		5: "SecurityType_NONE",
		6: "SecurityType_ZERO",
	}
	SecurityType_value = map[string]int32{
		"SecurityType_UNKNOWN":           0,
		"SecurityType_LEGACY":            1,
		"SecurityType_AUTO":              2,
		"SecurityType_AES128_GCM":        3,
		"SecurityType_CHACHA20_POLY1305": 4,
		"SecurityType_NONE":              5,
		"SecurityType_ZERO":              6,
	}
)

Enum value maps for SecurityType.

View Source
var File_protos_proxy_anytls_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_blackhole_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_dokodemo_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_freedom_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_http_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_hysteria_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_shadowsocks_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_socks_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_trojan_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_vi_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_vless_proto protoreflect.FileDescriptor
View Source
var File_protos_proxy_vmess_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Account

type Account struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetPassword

func (x *Account) GetPassword() string

func (*Account) GetUsername

func (x *Account) GetUsername() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AnytlsClientConfig

type AnytlsClientConfig struct {
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*AnytlsClientConfig) Descriptor deprecated

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

Deprecated: Use AnytlsClientConfig.ProtoReflect.Descriptor instead.

func (*AnytlsClientConfig) GetPassword

func (x *AnytlsClientConfig) GetPassword() string

func (*AnytlsClientConfig) ProtoMessage

func (*AnytlsClientConfig) ProtoMessage()

func (*AnytlsClientConfig) ProtoReflect

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

func (*AnytlsClientConfig) Reset

func (x *AnytlsClientConfig) Reset()

func (*AnytlsClientConfig) String

func (x *AnytlsClientConfig) String() string

type AnytlsServerConfig

type AnytlsServerConfig struct {
	Users []*configs.UserConfig `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*AnytlsServerConfig) Descriptor deprecated

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

Deprecated: Use AnytlsServerConfig.ProtoReflect.Descriptor instead.

func (*AnytlsServerConfig) GetUsers

func (x *AnytlsServerConfig) GetUsers() []*configs.UserConfig

func (*AnytlsServerConfig) ProtoMessage

func (*AnytlsServerConfig) ProtoMessage()

func (*AnytlsServerConfig) ProtoReflect

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

func (*AnytlsServerConfig) Reset

func (x *AnytlsServerConfig) Reset()

func (*AnytlsServerConfig) String

func (x *AnytlsServerConfig) String() string

type AuthType

type AuthType int32
const (
	// NO_AUTH is for anonymous authentication.
	AuthType_NO_AUTH AuthType = 0
	// PASSWORD is for username/password authentication.
	AuthType_PASSWORD AuthType = 1
)

func (AuthType) Descriptor

func (AuthType) Descriptor() protoreflect.EnumDescriptor

func (AuthType) Enum

func (x AuthType) Enum() *AuthType

func (AuthType) EnumDescriptor deprecated

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

Deprecated: Use AuthType.Descriptor instead.

func (AuthType) Number

func (x AuthType) Number() protoreflect.EnumNumber

func (AuthType) String

func (x AuthType) String() string

func (AuthType) Type

type BandwidthConfig

type BandwidthConfig struct {

	// for client, this is upload
	MaxTx uint32 `protobuf:"varint,1,opt,name=max_tx,json=maxTx,proto3" json:"max_tx,omitempty"`
	// for client, this is download
	MaxRx uint32 `protobuf:"varint,2,opt,name=max_rx,json=maxRx,proto3" json:"max_rx,omitempty"`
	// contains filtered or unexported fields
}

func (*BandwidthConfig) Descriptor deprecated

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

Deprecated: Use BandwidthConfig.ProtoReflect.Descriptor instead.

func (*BandwidthConfig) GetMaxRx

func (x *BandwidthConfig) GetMaxRx() uint32

func (*BandwidthConfig) GetMaxTx

func (x *BandwidthConfig) GetMaxTx() uint32

func (*BandwidthConfig) ProtoMessage

func (*BandwidthConfig) ProtoMessage()

func (*BandwidthConfig) ProtoReflect

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

func (*BandwidthConfig) Reset

func (x *BandwidthConfig) Reset()

func (*BandwidthConfig) String

func (x *BandwidthConfig) String() string

type BlackholeConfig

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

func (*BlackholeConfig) Descriptor deprecated

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

Deprecated: Use BlackholeConfig.ProtoReflect.Descriptor instead.

func (*BlackholeConfig) ProtoMessage

func (*BlackholeConfig) ProtoMessage()

func (*BlackholeConfig) ProtoReflect

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

func (*BlackholeConfig) Reset

func (x *BlackholeConfig) Reset()

func (*BlackholeConfig) String

func (x *BlackholeConfig) String() string

type DokodemoConfig

type DokodemoConfig struct {
	Address  string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port     uint32        `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Networks []net.Network `protobuf:"varint,7,rep,packed,name=networks,proto3,enum=x.common.net.Network" json:"networks,omitempty"`
	// contains filtered or unexported fields
}

func (*DokodemoConfig) Descriptor deprecated

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

Deprecated: Use DokodemoConfig.ProtoReflect.Descriptor instead.

func (*DokodemoConfig) GetAddress

func (x *DokodemoConfig) GetAddress() string

func (*DokodemoConfig) GetNetworks

func (x *DokodemoConfig) GetNetworks() []net.Network

func (*DokodemoConfig) GetPort

func (x *DokodemoConfig) GetPort() uint32

func (*DokodemoConfig) ProtoMessage

func (*DokodemoConfig) ProtoMessage()

func (*DokodemoConfig) ProtoReflect

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

func (*DokodemoConfig) Reset

func (x *DokodemoConfig) Reset()

func (*DokodemoConfig) String

func (x *DokodemoConfig) String() string

type FreedomConfig

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

func (*FreedomConfig) Descriptor deprecated

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

Deprecated: Use FreedomConfig.ProtoReflect.Descriptor instead.

func (*FreedomConfig) ProtoMessage

func (*FreedomConfig) ProtoMessage()

func (*FreedomConfig) ProtoReflect

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

func (*FreedomConfig) Reset

func (x *FreedomConfig) Reset()

func (*FreedomConfig) String

func (x *FreedomConfig) String() string

type HttpClientConfig

type HttpClientConfig struct {
	H1SkipWaitForReply bool     `protobuf:"varint,2,opt,name=h1_skip_wait_for_reply,json=h1SkipWaitForReply,proto3" json:"h1_skip_wait_for_reply,omitempty"`
	Account            *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// contains filtered or unexported fields
}

ClientConfig is the protobuf config for HTTP proxy client.

func (*HttpClientConfig) Descriptor deprecated

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

Deprecated: Use HttpClientConfig.ProtoReflect.Descriptor instead.

func (*HttpClientConfig) GetAccount

func (x *HttpClientConfig) GetAccount() *Account

func (*HttpClientConfig) GetH1SkipWaitForReply

func (x *HttpClientConfig) GetH1SkipWaitForReply() bool

func (*HttpClientConfig) ProtoMessage

func (*HttpClientConfig) ProtoMessage()

func (*HttpClientConfig) ProtoReflect

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

func (*HttpClientConfig) Reset

func (x *HttpClientConfig) Reset()

func (*HttpClientConfig) String

func (x *HttpClientConfig) String() string

type HttpServerConfig

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

Config for HTTP proxy server.

func (*HttpServerConfig) Descriptor deprecated

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

Deprecated: Use HttpServerConfig.ProtoReflect.Descriptor instead.

func (*HttpServerConfig) ProtoMessage

func (*HttpServerConfig) ProtoMessage()

func (*HttpServerConfig) ProtoReflect

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

func (*HttpServerConfig) Reset

func (x *HttpServerConfig) Reset()

func (*HttpServerConfig) String

func (x *HttpServerConfig) String() string

type Hysteria2ClientConfig

type Hysteria2ClientConfig struct {
	Auth      string           `protobuf:"bytes,3,opt,name=auth,proto3" json:"auth,omitempty"`
	TlsConfig *tls.TlsConfig   `protobuf:"bytes,4,opt,name=tls_config,json=tlsConfig,proto3" json:"tls_config,omitempty"`
	Quic      *QuicConfig      `protobuf:"bytes,12,opt,name=quic,proto3" json:"quic,omitempty"`
	FastOpen  bool             `protobuf:"varint,13,opt,name=fast_open,json=fastOpen,proto3" json:"fast_open,omitempty"`
	Bandwidth *BandwidthConfig `protobuf:"bytes,14,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"`
	Obfs      *ObfsConfig      `protobuf:"bytes,15,opt,name=obfs,proto3" json:"obfs,omitempty"`
	// contains filtered or unexported fields
}

func (*Hysteria2ClientConfig) Descriptor deprecated

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

Deprecated: Use Hysteria2ClientConfig.ProtoReflect.Descriptor instead.

func (*Hysteria2ClientConfig) GetAuth

func (x *Hysteria2ClientConfig) GetAuth() string

func (*Hysteria2ClientConfig) GetBandwidth

func (x *Hysteria2ClientConfig) GetBandwidth() *BandwidthConfig

func (*Hysteria2ClientConfig) GetFastOpen

func (x *Hysteria2ClientConfig) GetFastOpen() bool

func (*Hysteria2ClientConfig) GetObfs

func (x *Hysteria2ClientConfig) GetObfs() *ObfsConfig

func (*Hysteria2ClientConfig) GetQuic

func (x *Hysteria2ClientConfig) GetQuic() *QuicConfig

func (*Hysteria2ClientConfig) GetTlsConfig

func (x *Hysteria2ClientConfig) GetTlsConfig() *tls.TlsConfig

func (*Hysteria2ClientConfig) ProtoMessage

func (*Hysteria2ClientConfig) ProtoMessage()

func (*Hysteria2ClientConfig) ProtoReflect

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

func (*Hysteria2ClientConfig) Reset

func (x *Hysteria2ClientConfig) Reset()

func (*Hysteria2ClientConfig) String

func (x *Hysteria2ClientConfig) String() string

type Hysteria2ServerConfig

type Hysteria2ServerConfig struct {
	Users                 []*configs.UserConfig `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Obfs                  *ObfsConfig           `protobuf:"bytes,2,opt,name=obfs,proto3" json:"obfs,omitempty"`
	Bandwidth             *BandwidthConfig      `protobuf:"bytes,3,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"`
	Quic                  *QuicConfig           `protobuf:"bytes,4,opt,name=quic,proto3" json:"quic,omitempty"`
	IgnoreClientBandwidth bool                  `` /* 127-byte string literal not displayed */
	TlsConfig             *tls.TlsConfig        `protobuf:"bytes,8,opt,name=tls_config,json=tlsConfig,proto3" json:"tls_config,omitempty"`
	// contains filtered or unexported fields
}

func (*Hysteria2ServerConfig) Descriptor deprecated

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

Deprecated: Use Hysteria2ServerConfig.ProtoReflect.Descriptor instead.

func (*Hysteria2ServerConfig) GetBandwidth

func (x *Hysteria2ServerConfig) GetBandwidth() *BandwidthConfig

func (*Hysteria2ServerConfig) GetIgnoreClientBandwidth

func (x *Hysteria2ServerConfig) GetIgnoreClientBandwidth() bool

func (*Hysteria2ServerConfig) GetObfs

func (x *Hysteria2ServerConfig) GetObfs() *ObfsConfig

func (*Hysteria2ServerConfig) GetQuic

func (x *Hysteria2ServerConfig) GetQuic() *QuicConfig

func (*Hysteria2ServerConfig) GetTlsConfig

func (x *Hysteria2ServerConfig) GetTlsConfig() *tls.TlsConfig

func (*Hysteria2ServerConfig) GetUsers

func (x *Hysteria2ServerConfig) GetUsers() []*configs.UserConfig

func (*Hysteria2ServerConfig) ProtoMessage

func (*Hysteria2ServerConfig) ProtoMessage()

func (*Hysteria2ServerConfig) ProtoReflect

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

func (*Hysteria2ServerConfig) Reset

func (x *Hysteria2ServerConfig) Reset()

func (*Hysteria2ServerConfig) String

func (x *Hysteria2ServerConfig) String() string

type Obfs

type Obfs int32
const (
	Obfs_Salamander Obfs = 0
)

func (Obfs) Descriptor

func (Obfs) Descriptor() protoreflect.EnumDescriptor

func (Obfs) Enum

func (x Obfs) Enum() *Obfs

func (Obfs) EnumDescriptor deprecated

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

Deprecated: Use Obfs.Descriptor instead.

func (Obfs) Number

func (x Obfs) Number() protoreflect.EnumNumber

func (Obfs) String

func (x Obfs) String() string

func (Obfs) Type

func (Obfs) Type() protoreflect.EnumType

type ObfsConfig

type ObfsConfig struct {

	// Types that are valid to be assigned to Obfs:
	//
	//	*ObfsConfig_Salamander
	Obfs isObfsConfig_Obfs `protobuf_oneof:"obfs"`
	// contains filtered or unexported fields
}

func (*ObfsConfig) Descriptor deprecated

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

Deprecated: Use ObfsConfig.ProtoReflect.Descriptor instead.

func (*ObfsConfig) GetObfs

func (x *ObfsConfig) GetObfs() isObfsConfig_Obfs

func (*ObfsConfig) GetSalamander

func (x *ObfsConfig) GetSalamander() *SalamanderConfig

func (*ObfsConfig) ProtoMessage

func (*ObfsConfig) ProtoMessage()

func (*ObfsConfig) ProtoReflect

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

func (*ObfsConfig) Reset

func (x *ObfsConfig) Reset()

func (*ObfsConfig) String

func (x *ObfsConfig) String() string

type ObfsConfig_Salamander

type ObfsConfig_Salamander struct {
	Salamander *SalamanderConfig `protobuf:"bytes,1,opt,name=salamander,proto3,oneof"`
}

type QuicConfig

type QuicConfig struct {

	// MB
	InitialStreamReceiveWindow     uint32 `` /* 144-byte string literal not displayed */
	MaxStreamReceiveWindow         uint32 `` /* 132-byte string literal not displayed */
	InitialConnectionReceiveWindow uint32 `` /* 156-byte string literal not displayed */
	MaxConnectionReceiveWindow     uint32 `` /* 144-byte string literal not displayed */
	// bytes
	InitialStreamReceiveWindowBytes     uint64 `` /* 162-byte string literal not displayed */
	MaxStreamReceiveWindowBytes         uint64 `` /* 150-byte string literal not displayed */
	InitialConnectionReceiveWindowBytes uint64 `` /* 174-byte string literal not displayed */
	MaxConnectionReceiveWindowBytes     uint64 `` /* 162-byte string literal not displayed */
	MaxIdleTimeout                      uint32 `protobuf:"varint,9,opt,name=max_idle_timeout,json=maxIdleTimeout,proto3" json:"max_idle_timeout,omitempty"`
	KeepAlivePeriod                     uint32 `protobuf:"varint,10,opt,name=keep_alive_period,json=keepAlivePeriod,proto3" json:"keep_alive_period,omitempty"`
	DisablePathMtuDiscovery             bool   `` /* 136-byte string literal not displayed */
	// server only
	MaxIncomingStreams uint32 `protobuf:"varint,12,opt,name=max_incoming_streams,json=maxIncomingStreams,proto3" json:"max_incoming_streams,omitempty"`
	// contains filtered or unexported fields
}

func (*QuicConfig) Descriptor deprecated

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

Deprecated: Use QuicConfig.ProtoReflect.Descriptor instead.

func (*QuicConfig) GetDisablePathMtuDiscovery

func (x *QuicConfig) GetDisablePathMtuDiscovery() bool

func (*QuicConfig) GetInitialConnectionReceiveWindow

func (x *QuicConfig) GetInitialConnectionReceiveWindow() uint32

func (*QuicConfig) GetInitialConnectionReceiveWindowBytes

func (x *QuicConfig) GetInitialConnectionReceiveWindowBytes() uint64

func (*QuicConfig) GetInitialStreamReceiveWindow

func (x *QuicConfig) GetInitialStreamReceiveWindow() uint32

func (*QuicConfig) GetInitialStreamReceiveWindowBytes

func (x *QuicConfig) GetInitialStreamReceiveWindowBytes() uint64

func (*QuicConfig) GetKeepAlivePeriod

func (x *QuicConfig) GetKeepAlivePeriod() uint32

func (*QuicConfig) GetMaxConnectionReceiveWindow

func (x *QuicConfig) GetMaxConnectionReceiveWindow() uint32

func (*QuicConfig) GetMaxConnectionReceiveWindowBytes

func (x *QuicConfig) GetMaxConnectionReceiveWindowBytes() uint64

func (*QuicConfig) GetMaxIdleTimeout

func (x *QuicConfig) GetMaxIdleTimeout() uint32

func (*QuicConfig) GetMaxIncomingStreams

func (x *QuicConfig) GetMaxIncomingStreams() uint32

func (*QuicConfig) GetMaxStreamReceiveWindow

func (x *QuicConfig) GetMaxStreamReceiveWindow() uint32

func (*QuicConfig) GetMaxStreamReceiveWindowBytes

func (x *QuicConfig) GetMaxStreamReceiveWindowBytes() uint64

func (*QuicConfig) ProtoMessage

func (*QuicConfig) ProtoMessage()

func (*QuicConfig) ProtoReflect

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

func (*QuicConfig) Reset

func (x *QuicConfig) Reset()

func (*QuicConfig) String

func (x *QuicConfig) String() string

type SalamanderConfig

type SalamanderConfig struct {
	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*SalamanderConfig) Descriptor deprecated

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

Deprecated: Use SalamanderConfig.ProtoReflect.Descriptor instead.

func (*SalamanderConfig) GetPassword

func (x *SalamanderConfig) GetPassword() string

func (*SalamanderConfig) ProtoMessage

func (*SalamanderConfig) ProtoMessage()

func (*SalamanderConfig) ProtoReflect

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

func (*SalamanderConfig) Reset

func (x *SalamanderConfig) Reset()

func (*SalamanderConfig) String

func (x *SalamanderConfig) String() string

type SecurityType

type SecurityType int32
const (
	SecurityType_SecurityType_UNKNOWN           SecurityType = 0
	SecurityType_SecurityType_LEGACY            SecurityType = 1
	SecurityType_SecurityType_AUTO              SecurityType = 2
	SecurityType_SecurityType_AES128_GCM        SecurityType = 3
	SecurityType_SecurityType_CHACHA20_POLY1305 SecurityType = 4
	SecurityType_SecurityType_NONE              SecurityType = 5
	SecurityType_SecurityType_ZERO              SecurityType = 6
)

func (SecurityType) Descriptor

func (SecurityType) Enum

func (x SecurityType) Enum() *SecurityType

func (SecurityType) EnumDescriptor deprecated

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

Deprecated: Use SecurityType.Descriptor instead.

func (SecurityType) Number

func (SecurityType) String

func (x SecurityType) String() string

func (SecurityType) Type

type Shadowsocks2022ClientConfig

type Shadowsocks2022ClientConfig struct {
	Method string   `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Psk    []byte   `protobuf:"bytes,2,opt,name=psk,proto3" json:"psk,omitempty"`
	Ipsk   [][]byte `protobuf:"bytes,4,rep,name=ipsk,proto3" json:"ipsk,omitempty"`
	// contains filtered or unexported fields
}

func (*Shadowsocks2022ClientConfig) Descriptor deprecated

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

Deprecated: Use Shadowsocks2022ClientConfig.ProtoReflect.Descriptor instead.

func (*Shadowsocks2022ClientConfig) GetIpsk

func (x *Shadowsocks2022ClientConfig) GetIpsk() [][]byte

func (*Shadowsocks2022ClientConfig) GetMethod

func (x *Shadowsocks2022ClientConfig) GetMethod() string

func (*Shadowsocks2022ClientConfig) GetPsk

func (x *Shadowsocks2022ClientConfig) GetPsk() []byte

func (*Shadowsocks2022ClientConfig) ProtoMessage

func (*Shadowsocks2022ClientConfig) ProtoMessage()

func (*Shadowsocks2022ClientConfig) ProtoReflect

func (*Shadowsocks2022ClientConfig) Reset

func (x *Shadowsocks2022ClientConfig) Reset()

func (*Shadowsocks2022ClientConfig) String

func (x *Shadowsocks2022ClientConfig) String() string

type ShadowsocksAccount

type ShadowsocksAccount struct {
	CipherType                     ShadowsocksCipherType `` /* 127-byte string literal not displayed */
	IvCheck                        bool                  `protobuf:"varint,3,opt,name=iv_check,json=ivCheck,proto3" json:"iv_check,omitempty"`
	User                           *configs.UserConfig   `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"`
	ExperimentReducedIvHeadEntropy bool                  `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ShadowsocksAccount) Descriptor deprecated

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

Deprecated: Use ShadowsocksAccount.ProtoReflect.Descriptor instead.

func (*ShadowsocksAccount) GetCipherType

func (x *ShadowsocksAccount) GetCipherType() ShadowsocksCipherType

func (*ShadowsocksAccount) GetExperimentReducedIvHeadEntropy

func (x *ShadowsocksAccount) GetExperimentReducedIvHeadEntropy() bool

func (*ShadowsocksAccount) GetIvCheck

func (x *ShadowsocksAccount) GetIvCheck() bool

func (*ShadowsocksAccount) GetUser

func (x *ShadowsocksAccount) GetUser() *configs.UserConfig

func (*ShadowsocksAccount) ProtoMessage

func (*ShadowsocksAccount) ProtoMessage()

func (*ShadowsocksAccount) ProtoReflect

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

func (*ShadowsocksAccount) Reset

func (x *ShadowsocksAccount) Reset()

func (*ShadowsocksAccount) String

func (x *ShadowsocksAccount) String() string

type ShadowsocksCipherType

type ShadowsocksCipherType int32
const (
	ShadowsocksCipherType_AES_128_GCM       ShadowsocksCipherType = 0
	ShadowsocksCipherType_AES_256_GCM       ShadowsocksCipherType = 1
	ShadowsocksCipherType_CHACHA20_POLY1305 ShadowsocksCipherType = 2
	ShadowsocksCipherType_NONE              ShadowsocksCipherType = 3
)

func (ShadowsocksCipherType) Descriptor

func (ShadowsocksCipherType) Enum

func (ShadowsocksCipherType) EnumDescriptor deprecated

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

Deprecated: Use ShadowsocksCipherType.Descriptor instead.

func (ShadowsocksCipherType) Number

func (ShadowsocksCipherType) String

func (x ShadowsocksCipherType) String() string

func (ShadowsocksCipherType) Type

type ShadowsocksClientConfig

type ShadowsocksClientConfig struct {
	CipherType ShadowsocksCipherType `` /* 127-byte string literal not displayed */
	Password   string                `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*ShadowsocksClientConfig) Descriptor deprecated

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

Deprecated: Use ShadowsocksClientConfig.ProtoReflect.Descriptor instead.

func (*ShadowsocksClientConfig) GetCipherType

func (*ShadowsocksClientConfig) GetPassword

func (x *ShadowsocksClientConfig) GetPassword() string

func (*ShadowsocksClientConfig) ProtoMessage

func (*ShadowsocksClientConfig) ProtoMessage()

func (*ShadowsocksClientConfig) ProtoReflect

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

func (*ShadowsocksClientConfig) Reset

func (x *ShadowsocksClientConfig) Reset()

func (*ShadowsocksClientConfig) String

func (x *ShadowsocksClientConfig) String() string

type ShadowsocksServerConfig

type ShadowsocksServerConfig struct {
	CipherType                     ShadowsocksCipherType `` /* 127-byte string literal not displayed */
	IvCheck                        bool                  `protobuf:"varint,4,opt,name=iv_check,json=ivCheck,proto3" json:"iv_check,omitempty"`
	User                           *configs.UserConfig   `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"`
	ExperimentReducedIvHeadEntropy bool                  `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ShadowsocksServerConfig) Descriptor deprecated

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

Deprecated: Use ShadowsocksServerConfig.ProtoReflect.Descriptor instead.

func (*ShadowsocksServerConfig) GetCipherType

func (*ShadowsocksServerConfig) GetExperimentReducedIvHeadEntropy

func (x *ShadowsocksServerConfig) GetExperimentReducedIvHeadEntropy() bool

func (*ShadowsocksServerConfig) GetIvCheck

func (x *ShadowsocksServerConfig) GetIvCheck() bool

func (*ShadowsocksServerConfig) GetUser

func (*ShadowsocksServerConfig) ProtoMessage

func (*ShadowsocksServerConfig) ProtoMessage()

func (*ShadowsocksServerConfig) ProtoReflect

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

func (*ShadowsocksServerConfig) Reset

func (x *ShadowsocksServerConfig) Reset()

func (*ShadowsocksServerConfig) String

func (x *ShadowsocksServerConfig) String() string

type SocksClientConfig

type SocksClientConfig struct {
	Name           string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Password       string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	DelayAuthWrite bool   `protobuf:"varint,3,opt,name=delay_auth_write,json=delayAuthWrite,proto3" json:"delay_auth_write,omitempty"`
	// contains filtered or unexported fields
}

ClientConfig is the protobuf config for Socks client.

func (*SocksClientConfig) Descriptor deprecated

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

Deprecated: Use SocksClientConfig.ProtoReflect.Descriptor instead.

func (*SocksClientConfig) GetDelayAuthWrite

func (x *SocksClientConfig) GetDelayAuthWrite() bool

func (*SocksClientConfig) GetName

func (x *SocksClientConfig) GetName() string

func (*SocksClientConfig) GetPassword

func (x *SocksClientConfig) GetPassword() string

func (*SocksClientConfig) ProtoMessage

func (*SocksClientConfig) ProtoMessage()

func (*SocksClientConfig) ProtoReflect

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

func (*SocksClientConfig) Reset

func (x *SocksClientConfig) Reset()

func (*SocksClientConfig) String

func (x *SocksClientConfig) String() string

type SocksServerConfig

type SocksServerConfig struct {
	AuthType AuthType              `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=x.proxy.AuthType" json:"auth_type,omitempty"`
	Accounts []*configs.UserConfig `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// used as BND.ADDR of the reply to a socks request
	Address    string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	UdpEnabled bool   `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
	// contains filtered or unexported fields
}

ServerConfig is the protobuf config for Socks server.

func (*SocksServerConfig) Descriptor deprecated

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

Deprecated: Use SocksServerConfig.ProtoReflect.Descriptor instead.

func (*SocksServerConfig) GetAccounts

func (x *SocksServerConfig) GetAccounts() []*configs.UserConfig

func (*SocksServerConfig) GetAddress

func (x *SocksServerConfig) GetAddress() string

func (*SocksServerConfig) GetAuthType

func (x *SocksServerConfig) GetAuthType() AuthType

func (*SocksServerConfig) GetUdpEnabled

func (x *SocksServerConfig) GetUdpEnabled() bool

func (*SocksServerConfig) ProtoMessage

func (*SocksServerConfig) ProtoMessage()

func (*SocksServerConfig) ProtoReflect

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

func (*SocksServerConfig) Reset

func (x *SocksServerConfig) Reset()

func (*SocksServerConfig) String

func (x *SocksServerConfig) String() string

type TrojanClientConfig

type TrojanClientConfig struct {
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	Special  bool   `protobuf:"varint,3,opt,name=special,proto3" json:"special,omitempty"`
	Vision   bool   `protobuf:"varint,4,opt,name=vision,proto3" json:"vision,omitempty"`
	// contains filtered or unexported fields
}

func (*TrojanClientConfig) Descriptor deprecated

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

Deprecated: Use TrojanClientConfig.ProtoReflect.Descriptor instead.

func (*TrojanClientConfig) GetPassword

func (x *TrojanClientConfig) GetPassword() string

func (*TrojanClientConfig) GetSpecial

func (x *TrojanClientConfig) GetSpecial() bool

func (*TrojanClientConfig) GetVision

func (x *TrojanClientConfig) GetVision() bool

func (*TrojanClientConfig) ProtoMessage

func (*TrojanClientConfig) ProtoMessage()

func (*TrojanClientConfig) ProtoReflect

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

func (*TrojanClientConfig) Reset

func (x *TrojanClientConfig) Reset()

func (*TrojanClientConfig) String

func (x *TrojanClientConfig) String() string

type TrojanServerConfig

type TrojanServerConfig struct {
	Users  []*configs.UserConfig `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Vision bool                  `protobuf:"varint,2,opt,name=vision,proto3" json:"vision,omitempty"`
	// contains filtered or unexported fields
}

func (*TrojanServerConfig) Descriptor deprecated

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

Deprecated: Use TrojanServerConfig.ProtoReflect.Descriptor instead.

func (*TrojanServerConfig) GetUsers

func (x *TrojanServerConfig) GetUsers() []*configs.UserConfig

func (*TrojanServerConfig) GetVision

func (x *TrojanServerConfig) GetVision() bool

func (*TrojanServerConfig) ProtoMessage

func (*TrojanServerConfig) ProtoMessage()

func (*TrojanServerConfig) ProtoReflect

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

func (*TrojanServerConfig) Reset

func (x *TrojanServerConfig) Reset()

func (*TrojanServerConfig) String

func (x *TrojanServerConfig) String() string

type ViClientConfig

type ViClientConfig struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Port    uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// uuid
	Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*ViClientConfig) Descriptor deprecated

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

Deprecated: Use ViClientConfig.ProtoReflect.Descriptor instead.

func (*ViClientConfig) GetAddress

func (x *ViClientConfig) GetAddress() string

func (*ViClientConfig) GetPort

func (x *ViClientConfig) GetPort() uint32

func (*ViClientConfig) GetSecret

func (x *ViClientConfig) GetSecret() string

func (*ViClientConfig) ProtoMessage

func (*ViClientConfig) ProtoMessage()

func (*ViClientConfig) ProtoReflect

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

func (*ViClientConfig) Reset

func (x *ViClientConfig) Reset()

func (*ViClientConfig) String

func (x *ViClientConfig) String() string

type ViServerConfig

type ViServerConfig struct {
	Users []*configs.UserConfig `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*ViServerConfig) Descriptor deprecated

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

Deprecated: Use ViServerConfig.ProtoReflect.Descriptor instead.

func (*ViServerConfig) GetUsers

func (x *ViServerConfig) GetUsers() []*configs.UserConfig

func (*ViServerConfig) ProtoMessage

func (*ViServerConfig) ProtoMessage()

func (*ViServerConfig) ProtoReflect

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

func (*ViServerConfig) Reset

func (x *ViServerConfig) Reset()

func (*ViServerConfig) String

func (x *ViServerConfig) String() string

type VlessClientConfig

type VlessClientConfig struct {

	// ID of the account, in the form of a UUID, e.g.,
	// "66ad4540-b58c-4ad2-9926-ea63445a9b57".
	Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// Flow settings. May be "xtls-rprx-vision".
	Flow string `protobuf:"bytes,6,opt,name=flow,proto3" json:"flow,omitempty"`
	// Encryption settings. Only applies to client side, and only accepts "none"
	// for now.
	Encryption string `protobuf:"bytes,7,opt,name=encryption,proto3" json:"encryption,omitempty"`
	// contains filtered or unexported fields
}

func (*VlessClientConfig) Descriptor deprecated

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

Deprecated: Use VlessClientConfig.ProtoReflect.Descriptor instead.

func (*VlessClientConfig) GetEncryption

func (x *VlessClientConfig) GetEncryption() string

func (*VlessClientConfig) GetFlow

func (x *VlessClientConfig) GetFlow() string

func (*VlessClientConfig) GetId

func (x *VlessClientConfig) GetId() string

func (*VlessClientConfig) ProtoMessage

func (*VlessClientConfig) ProtoMessage()

func (*VlessClientConfig) ProtoReflect

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

func (*VlessClientConfig) Reset

func (x *VlessClientConfig) Reset()

func (*VlessClientConfig) String

func (x *VlessClientConfig) String() string

type VlessServerConfig

type VlessServerConfig struct {
	Users []*configs.UserConfig `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*VlessServerConfig) Descriptor deprecated

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

Deprecated: Use VlessServerConfig.ProtoReflect.Descriptor instead.

func (*VlessServerConfig) GetUsers

func (x *VlessServerConfig) GetUsers() []*configs.UserConfig

func (*VlessServerConfig) ProtoMessage

func (*VlessServerConfig) ProtoMessage()

func (*VlessServerConfig) ProtoReflect

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

func (*VlessServerConfig) Reset

func (x *VlessServerConfig) Reset()

func (*VlessServerConfig) String

func (x *VlessServerConfig) String() string

type VmessClientConfig

type VmessClientConfig struct {
	Id       string       `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Security SecurityType `protobuf:"varint,4,opt,name=security,proto3,enum=x.proxy.SecurityType" json:"security,omitempty"`
	Special  bool         `protobuf:"varint,6,opt,name=special,proto3" json:"special,omitempty"`
	AlterId  uint32       `protobuf:"varint,7,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VmessClientConfig) Descriptor deprecated

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

Deprecated: Use VmessClientConfig.ProtoReflect.Descriptor instead.

func (*VmessClientConfig) GetAlterId

func (x *VmessClientConfig) GetAlterId() uint32

func (*VmessClientConfig) GetId

func (x *VmessClientConfig) GetId() string

func (*VmessClientConfig) GetSecurity

func (x *VmessClientConfig) GetSecurity() SecurityType

func (*VmessClientConfig) GetSpecial

func (x *VmessClientConfig) GetSpecial() bool

func (*VmessClientConfig) ProtoMessage

func (*VmessClientConfig) ProtoMessage()

func (*VmessClientConfig) ProtoReflect

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

func (*VmessClientConfig) Reset

func (x *VmessClientConfig) Reset()

func (*VmessClientConfig) String

func (x *VmessClientConfig) String() string

type VmessServerConfig

type VmessServerConfig struct {
	Accounts             []*configs.UserConfig `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	SecureEncryptionOnly bool                  `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
	// contains filtered or unexported fields
}

func (*VmessServerConfig) Descriptor deprecated

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

Deprecated: Use VmessServerConfig.ProtoReflect.Descriptor instead.

func (*VmessServerConfig) GetAccounts

func (x *VmessServerConfig) GetAccounts() []*configs.UserConfig

func (*VmessServerConfig) GetSecureEncryptionOnly

func (x *VmessServerConfig) GetSecureEncryptionOnly() bool

func (*VmessServerConfig) ProtoMessage

func (*VmessServerConfig) ProtoMessage()

func (*VmessServerConfig) ProtoReflect

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

func (*VmessServerConfig) Reset

func (x *VmessServerConfig) Reset()

func (*VmessServerConfig) String

func (x *VmessServerConfig) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL