2016-09-17 18:41:21 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2016-09-26 09:14:16 -04:00
|
|
|
package v2ray.core.proxy.shadowsocks;
|
2016-12-22 18:24:28 -05:00
|
|
|
option csharp_namespace = "V2Ray.Core.Proxy.Shadowsocks";
|
2020-08-24 08:10:26 -04:00
|
|
|
option go_package = "v2ray.com/core/proxy/shadowsocks";
|
2016-09-26 09:14:16 -04:00
|
|
|
option java_package = "com.v2ray.core.proxy.shadowsocks";
|
2017-02-03 17:15:10 -05:00
|
|
|
option java_multiple_files = true;
|
2016-09-17 18:41:21 -04:00
|
|
|
|
2020-08-24 08:10:26 -04:00
|
|
|
import "common/net/network.proto";
|
|
|
|
import "common/protocol/user.proto";
|
|
|
|
import "common/protocol/server_spec.proto";
|
2016-09-25 16:07:32 -04:00
|
|
|
|
2016-09-17 18:41:21 -04:00
|
|
|
message Account {
|
2016-10-31 10:24:28 -04:00
|
|
|
enum OneTimeAuth {
|
|
|
|
Auto = 0;
|
|
|
|
Disabled = 1;
|
|
|
|
Enabled = 2;
|
|
|
|
}
|
2016-09-17 18:41:21 -04:00
|
|
|
string password = 1;
|
2016-09-25 16:07:32 -04:00
|
|
|
CipherType cipher_type = 2;
|
2016-10-31 10:24:28 -04:00
|
|
|
OneTimeAuth ota = 3;
|
2016-09-25 16:07:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
enum CipherType {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
AES_128_CFB = 1;
|
|
|
|
AES_256_CFB = 2;
|
|
|
|
CHACHA20 = 3;
|
2017-01-02 19:37:27 -05:00
|
|
|
CHACHA20_IETF = 4;
|
2017-04-05 16:55:26 -04:00
|
|
|
AES_128_GCM = 5;
|
|
|
|
AES_256_GCM = 6;
|
|
|
|
CHACHA20_POLY1305 = 7;
|
2017-11-29 16:19:04 -05:00
|
|
|
NONE = 8;
|
2016-09-25 16:07:32 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message ServerConfig {
|
2018-04-03 11:51:01 -04:00
|
|
|
// UdpEnabled specified whether or not to enable UDP for Shadowsocks.
|
|
|
|
// Deprecated. Use 'network' field.
|
|
|
|
bool udp_enabled = 1 [deprecated = true];
|
2016-09-26 09:14:16 -04:00
|
|
|
v2ray.core.common.protocol.User user = 2;
|
2018-04-03 11:51:01 -04:00
|
|
|
repeated v2ray.core.common.net.Network network = 3;
|
2016-09-17 18:41:21 -04:00
|
|
|
}
|
|
|
|
|
2016-09-25 16:07:32 -04:00
|
|
|
message ClientConfig {
|
2016-10-12 12:43:55 -04:00
|
|
|
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
|
2017-11-27 16:09:30 -05:00
|
|
|
}
|