2020-11-25 14:01:53 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package xray.proxy.shadowsocks;
|
|
|
|
option csharp_namespace = "Xray.Proxy.Shadowsocks";
|
2020-12-04 04:36:16 +03:00
|
|
|
option go_package = "github.com/xtls/xray-core/proxy/shadowsocks";
|
2020-11-25 14:01:53 +03:00
|
|
|
option java_package = "com.xray.proxy.shadowsocks";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
|
|
|
import "common/net/network.proto";
|
|
|
|
import "common/protocol/user.proto";
|
|
|
|
import "common/protocol/server_spec.proto";
|
|
|
|
|
|
|
|
message Account {
|
|
|
|
string password = 1;
|
|
|
|
CipherType cipher_type = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum CipherType {
|
|
|
|
UNKNOWN = 0;
|
2021-09-20 17:41:09 +03:00
|
|
|
AES_128_GCM = 5;
|
|
|
|
AES_256_GCM = 6;
|
|
|
|
CHACHA20_POLY1305 = 7;
|
|
|
|
NONE = 8;
|
2020-11-25 14:01:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message ServerConfig {
|
2021-01-19 01:52:35 +03:00
|
|
|
repeated xray.common.protocol.User users = 1;
|
|
|
|
repeated xray.common.net.Network network = 2;
|
2020-11-25 14:01:53 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message ClientConfig {
|
|
|
|
repeated xray.common.protocol.ServerEndpoint server = 1;
|
|
|
|
}
|