2022-05-23 06:55:48 +03:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package xray.proxy.shadowsocks_2022;
|
|
|
|
option csharp_namespace = "Xray.Proxy.Shadowsocks2022";
|
|
|
|
option go_package = "github.com/xtls/xray-core/proxy/shadowsocks_2022";
|
|
|
|
option java_package = "com.xray.proxy.shadowsocks_2022";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
|
|
|
import "common/net/network.proto";
|
|
|
|
import "common/net/address.proto";
|
2024-11-03 07:25:23 +03:00
|
|
|
import "common/protocol/user.proto";
|
2022-05-23 06:55:48 +03:00
|
|
|
|
|
|
|
message ServerConfig {
|
|
|
|
string method = 1;
|
|
|
|
string key = 2;
|
2022-05-24 02:25:12 +03:00
|
|
|
string email = 3;
|
2022-05-25 03:49:52 +03:00
|
|
|
int32 level = 4;
|
|
|
|
repeated xray.common.net.Network network = 5;
|
2022-05-24 02:25:12 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message MultiUserServerConfig {
|
|
|
|
string method = 1;
|
|
|
|
string key = 2;
|
2024-11-03 07:25:23 +03:00
|
|
|
repeated xray.common.protocol.User users = 3;
|
2022-05-24 02:25:12 +03:00
|
|
|
repeated xray.common.net.Network network = 4;
|
|
|
|
}
|
|
|
|
|
2022-06-19 17:17:23 +03:00
|
|
|
message RelayDestination {
|
|
|
|
string key = 1;
|
|
|
|
xray.common.net.IPOrDomain address = 2;
|
|
|
|
uint32 port = 3;
|
|
|
|
string email = 4;
|
|
|
|
int32 level = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
message RelayServerConfig {
|
|
|
|
string method = 1;
|
|
|
|
string key = 2;
|
|
|
|
repeated RelayDestination destinations = 3;
|
|
|
|
repeated xray.common.net.Network network = 4;
|
|
|
|
}
|
|
|
|
|
2024-11-03 07:25:23 +03:00
|
|
|
message Account {
|
2022-05-24 02:25:12 +03:00
|
|
|
string key = 1;
|
2022-05-23 06:55:48 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message ClientConfig {
|
|
|
|
xray.common.net.IPOrDomain address = 1;
|
|
|
|
uint32 port = 2;
|
|
|
|
string method = 3;
|
|
|
|
string key = 4;
|
2022-06-01 06:12:43 +03:00
|
|
|
bool udp_over_tcp = 5;
|
2023-03-15 09:42:32 +03:00
|
|
|
uint32 udp_over_tcp_version = 6;
|
2022-05-23 06:55:48 +03:00
|
|
|
}
|