2016-09-18 00:41:21 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2016-09-26 15:14:16 +02:00
|
|
|
package v2ray.core.proxy.shadowsocks;
|
2016-12-23 00:24:28 +01:00
|
|
|
option csharp_namespace = "V2Ray.Core.Proxy.Shadowsocks";
|
2022-01-02 15:16:23 +00:00
|
|
|
option go_package = "github.com/v2fly/v2ray-core/v5/proxy/shadowsocks";
|
2016-09-26 15:14:16 +02:00
|
|
|
option java_package = "com.v2ray.core.proxy.shadowsocks";
|
2017-02-03 23:15:10 +01:00
|
|
|
option java_multiple_files = true;
|
2016-09-18 00:41:21 +02:00
|
|
|
|
2020-08-24 20:10:26 +08:00
|
|
|
import "common/net/network.proto";
|
|
|
|
import "common/protocol/user.proto";
|
|
|
|
import "common/protocol/server_spec.proto";
|
2021-12-30 22:20:10 +00:00
|
|
|
import "common/net/packetaddr/config.proto";
|
2016-09-25 22:07:32 +02:00
|
|
|
|
2016-09-18 00:41:21 +02:00
|
|
|
message Account {
|
|
|
|
string password = 1;
|
2016-09-25 22:07:32 +02:00
|
|
|
CipherType cipher_type = 2;
|
2021-03-13 10:32:21 +00:00
|
|
|
|
2021-03-05 07:58:27 +00:00
|
|
|
bool iv_check = 3;
|
2022-01-14 11:53:27 +00:00
|
|
|
bool experiment_reduced_iv_head_entropy = 90001;
|
2016-09-25 22:07:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum CipherType {
|
|
|
|
UNKNOWN = 0;
|
2021-01-01 10:18:00 +08:00
|
|
|
AES_128_GCM = 1;
|
|
|
|
AES_256_GCM = 2;
|
|
|
|
CHACHA20_POLY1305 = 3;
|
|
|
|
NONE = 4;
|
2016-09-25 22:07:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message ServerConfig {
|
2018-04-03 17:51:01 +02:00
|
|
|
// UdpEnabled specified whether or not to enable UDP for Shadowsocks.
|
|
|
|
// Deprecated. Use 'network' field.
|
|
|
|
bool udp_enabled = 1 [deprecated = true];
|
2016-09-26 15:14:16 +02:00
|
|
|
v2ray.core.common.protocol.User user = 2;
|
2018-04-03 17:51:01 +02:00
|
|
|
repeated v2ray.core.common.net.Network network = 3;
|
2021-12-30 22:20:10 +00:00
|
|
|
v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 4;
|
2016-09-18 00:41:21 +02:00
|
|
|
}
|
|
|
|
|
2016-09-25 22:07:32 +02:00
|
|
|
message ClientConfig {
|
2016-10-12 18:43:55 +02:00
|
|
|
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
|
2017-11-27 22:09:30 +01:00
|
|
|
}
|