mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-26 20:16:55 -05:00
31 lines
677 B
Protocol Buffer
31 lines
677 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package v2ray.core.proxy.socks;
|
|
option go_package = "socks";
|
|
option java_package = "com.v2ray.core.proxy.socks";
|
|
option java_outer_classname = "ConfigProto";
|
|
|
|
import "v2ray.com/core/common/net/address.proto";
|
|
import "v2ray.com/core/common/protocol/server_spec.proto";
|
|
|
|
message Account {
|
|
string username = 1;
|
|
string password = 2;
|
|
}
|
|
|
|
enum AuthType {
|
|
NO_AUTH = 0;
|
|
PASSWORD = 1;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
message ClientConfig {
|
|
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
|
|
} |