mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-09-12 05:46:25 +00:00
* use shadowsocket's bloomring for shadowsocket's replay protection * added shadowsockets iv check for tcp socket * Rename to shadowsockets iv check * shadowsocks iv check config file * iv check should proceed after decryption * use shadowsocket's bloomring for shadowsocket's replay protection * Chore: format code (#842) Co-authored-by: Shelikhoo <xiaokangwang@outlook.com> Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
36 lines
789 B
Protocol Buffer
36 lines
789 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package xray.proxy.shadowsocks;
|
|
option csharp_namespace = "Xray.Proxy.Shadowsocks";
|
|
option go_package = "github.com/xtls/xray-core/proxy/shadowsocks";
|
|
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;
|
|
|
|
bool iv_check = 3;
|
|
}
|
|
|
|
enum CipherType {
|
|
UNKNOWN = 0;
|
|
AES_128_GCM = 5;
|
|
AES_256_GCM = 6;
|
|
CHACHA20_POLY1305 = 7;
|
|
NONE = 8;
|
|
}
|
|
|
|
message ServerConfig {
|
|
repeated xray.common.protocol.User users = 1;
|
|
repeated xray.common.net.Network network = 2;
|
|
}
|
|
|
|
message ClientConfig {
|
|
repeated xray.common.protocol.ServerEndpoint server = 1;
|
|
}
|