v2ray-core/proxy/socks/config.proto

32 lines
719 B
Protocol Buffer
Raw Normal View History

2016-08-28 21:41:45 +00:00
syntax = "proto3";
2016-09-26 13:14:16 +00:00
package v2ray.core.proxy.socks;
2016-12-22 23:24:28 +00:00
option csharp_namespace = "V2Ray.Core.Proxy.Socks";
2016-08-28 21:41:45 +00:00
option go_package = "socks";
2016-09-26 13:14:16 +00:00
option java_package = "com.v2ray.core.proxy.socks";
2017-02-03 22:15:10 +00:00
option java_multiple_files = true;
2016-08-28 21:41:45 +00:00
import "v2ray.com/core/common/net/address.proto";
2016-09-25 20:54:18 +00:00
import "v2ray.com/core/common/protocol/server_spec.proto";
message Account {
string username = 1;
string password = 2;
}
enum AuthType {
NO_AUTH = 0;
PASSWORD = 1;
}
2016-08-28 21:41:45 +00:00
message ServerConfig {
AuthType auth_type = 1;
map<string, string> accounts = 2;
2016-10-12 16:43:55 +00:00
v2ray.core.common.net.IPOrDomain address = 3;
2016-08-28 21:41:45 +00:00
bool udp_enabled = 4;
uint32 timeout = 5;
}
2016-09-25 20:54:18 +00:00
message ClientConfig {
2016-10-12 16:43:55 +00:00
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
2016-09-25 20:54:18 +00:00
}