github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/proxy/shadowsocks_2022/config.proto (about)

     1  syntax = "proto3";
     2  
     3  package xray.proxy.shadowsocks_2022;
     4  option csharp_namespace = "Xray.Proxy.Shadowsocks2022";
     5  option go_package = "github.com/xtls/xray-core/proxy/shadowsocks_2022";
     6  option java_package = "com.xray.proxy.shadowsocks_2022";
     7  option java_multiple_files = true;
     8  
     9  import "common/net/network.proto";
    10  import "common/net/address.proto";
    11  
    12  message ServerConfig {
    13    string method = 1;
    14    string key = 2;
    15    string email = 3;
    16    int32 level = 4;
    17    repeated xray.common.net.Network network = 5;
    18  }
    19  
    20  message MultiUserServerConfig {
    21    string method = 1;
    22    string key = 2;
    23    repeated User users = 3;
    24    repeated xray.common.net.Network network = 4;
    25  }
    26  
    27  message RelayDestination {
    28    string key = 1;
    29    xray.common.net.IPOrDomain address = 2;
    30    uint32 port = 3;
    31    string email = 4;
    32    int32 level = 5;
    33  }
    34  
    35  message RelayServerConfig {
    36    string method = 1;
    37    string key = 2;
    38    repeated RelayDestination destinations = 3;
    39    repeated xray.common.net.Network network = 4;
    40  }
    41  
    42  message User {
    43    string key = 1;
    44    string email = 2;
    45    int32 level = 3;
    46  }
    47  
    48  message ClientConfig {
    49    xray.common.net.IPOrDomain address = 1;
    50    uint32 port = 2;
    51    string method = 3;
    52    string key = 4;
    53    bool udp_over_tcp = 5;
    54    uint32 udp_over_tcp_version = 6;
    55  }