1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-05 13:35:23 +00:00
v2fly/proxy/shadowsocks/config.proto

38 lines
832 B
Protocol Buffer
Raw Normal View History

2016-09-17 22:41:21 +00:00
syntax = "proto3";
2016-09-26 13:14:16 +00:00
package v2ray.core.proxy.shadowsocks;
2016-12-22 23:24:28 +00:00
option csharp_namespace = "V2Ray.Core.Proxy.Shadowsocks";
2016-09-17 22:41:21 +00:00
option go_package = "shadowsocks";
2016-09-26 13:14:16 +00:00
option java_package = "com.v2ray.core.proxy.shadowsocks";
option java_outer_classname = "ConfigProto";
2016-09-17 22:41:21 +00:00
2016-09-25 20:07:32 +00:00
import "v2ray.com/core/common/protocol/user.proto";
import "v2ray.com/core/common/protocol/server_spec.proto";
2016-09-17 22:41:21 +00:00
message Account {
2016-10-31 14:24:28 +00:00
enum OneTimeAuth {
Auto = 0;
Disabled = 1;
Enabled = 2;
}
2016-09-17 22:41:21 +00:00
string password = 1;
2016-09-25 20:07:32 +00:00
CipherType cipher_type = 2;
2016-10-31 14:24:28 +00:00
OneTimeAuth ota = 3;
2016-09-25 20:07:32 +00:00
}
enum CipherType {
UNKNOWN = 0;
AES_128_CFB = 1;
AES_256_CFB = 2;
CHACHA20 = 3;
2017-01-03 00:37:27 +00:00
CHACHA20_IETF = 4;
2016-09-25 20:07:32 +00:00
}
message ServerConfig {
bool udp_enabled = 1;
2016-09-26 13:14:16 +00:00
v2ray.core.common.protocol.User user = 2;
2016-09-17 22:41:21 +00:00
}
2016-09-25 20:07:32 +00:00
message ClientConfig {
2016-10-12 16:43:55 +00:00
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
2016-09-17 22:41:21 +00:00
}