mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
ef460f68f8
* Update protoc binary executable files to v3.13.0 * Write proto files in more standard way * Make go generate & vprotogen compatible with protoc-gen-gofast * Regenerate pb.go files according to new proto files * Clean go.sum by running go mod tidy * Implement mustEmbedUnimplementedServiceServer for gPRC services
41 lines
1.1 KiB
Protocol Buffer
41 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package v2ray.core.proxy.socks;
|
|
option csharp_namespace = "V2Ray.Core.Proxy.Socks";
|
|
option go_package = "v2ray.com/core/proxy/socks";
|
|
option java_package = "com.v2ray.core.proxy.socks";
|
|
option java_multiple_files = true;
|
|
|
|
import "common/net/address.proto";
|
|
import "common/protocol/server_spec.proto";
|
|
|
|
// Account represents a Socks account.
|
|
message Account {
|
|
string username = 1;
|
|
string password = 2;
|
|
}
|
|
|
|
// AuthType is the authentication type of Socks proxy.
|
|
enum AuthType {
|
|
// NO_AUTH is for anounymous authentication.
|
|
NO_AUTH = 0;
|
|
// PASSWORD is for username/password authentication.
|
|
PASSWORD = 1;
|
|
}
|
|
|
|
// ServerConfig is the protobuf config for Socks server.
|
|
message ServerConfig {
|
|
AuthType auth_type = 1;
|
|
map<string, string> accounts = 2;
|
|
v2ray.core.common.net.IPOrDomain address = 3;
|
|
bool udp_enabled = 4;
|
|
uint32 timeout = 5 [deprecated = true];
|
|
uint32 user_level = 6;
|
|
}
|
|
|
|
// ClientConfig is the protobuf config for Socks client.
|
|
message ClientConfig {
|
|
// Sever is a list of Socks server addresses.
|
|
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
|
|
}
|