diff --git a/app/log/command/config.pb.go b/app/log/command/config.pb.go index d8742415..b361530c 100644 --- a/app/log/command/config.pb.go +++ b/app/log/command/config.pb.go @@ -1,12 +1,11 @@ package command import ( - "context" fmt "fmt" - math "math" - proto "github.com/golang/protobuf/proto" + "context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/app/proxyman/command/command.pb.go b/app/proxyman/command/command.pb.go index 55cc5dfa..c711df4b 100644 --- a/app/proxyman/command/command.pb.go +++ b/app/proxyman/command/command.pb.go @@ -1,12 +1,11 @@ package command import ( - "context" fmt "fmt" - math "math" - proto "github.com/golang/protobuf/proto" + "context" grpc "google.golang.org/grpc" + math "math" core "v2ray.com/core" protocol "v2ray.com/core/common/protocol" serial "v2ray.com/core/common/serial" diff --git a/app/stats/command/command.pb.go b/app/stats/command/command.pb.go index 514734fd..d9aae2af 100644 --- a/app/stats/command/command.pb.go +++ b/app/stats/command/command.pb.go @@ -1,12 +1,11 @@ package command import ( - "context" fmt "fmt" - math "math" - proto "github.com/golang/protobuf/proto" + "context" grpc "google.golang.org/grpc" + math "math" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/proxy/socks/config.pb.go b/proxy/socks/config.pb.go index 9b9f8b28..f3226c2c 100644 --- a/proxy/socks/config.pb.go +++ b/proxy/socks/config.pb.go @@ -19,10 +19,13 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package +// AuthType is the authentication type of Socks proxy. type AuthType int32 const ( - AuthType_NO_AUTH AuthType = 0 + // NO_AUTH is for anounymous authentication. + AuthType_NO_AUTH AuthType = 0 + // PASSWORD is for username/password authentication. AuthType_PASSWORD AuthType = 1 ) @@ -44,6 +47,7 @@ func (AuthType) EnumDescriptor() ([]byte, []int) { return fileDescriptor_e86958e2cebd3303, []int{0} } +// Account represents a Socks 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"` @@ -91,6 +95,7 @@ func (m *Account) GetPassword() string { return "" } +// ServerConfig is the protobuf config for Socks server. type ServerConfig struct { AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=v2ray.core.proxy.socks.AuthType" json:"auth_type,omitempty"` Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` @@ -171,7 +176,9 @@ func (m *ServerConfig) GetUserLevel() uint32 { return 0 } +// ClientConfig is the protobuf config for Socks client. type ClientConfig struct { + // Sever is a list of Socks server addresses. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"`