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

     1  syntax = "proto3";
     2  
     3  package xray.proxy.shadowsocks;
     4  option csharp_namespace = "Xray.Proxy.Shadowsocks";
     5  option go_package = "github.com/xtls/xray-core/proxy/shadowsocks";
     6  option java_package = "com.xray.proxy.shadowsocks";
     7  option java_multiple_files = true;
     8  
     9  import "common/net/network.proto";
    10  import "common/protocol/user.proto";
    11  import "common/protocol/server_spec.proto";
    12  
    13  message Account {
    14    string password = 1;
    15    CipherType cipher_type = 2;
    16  
    17    bool iv_check = 3;
    18  }
    19  
    20  enum CipherType {
    21    UNKNOWN = 0;
    22    AES_128_GCM = 5;
    23    AES_256_GCM = 6;
    24    CHACHA20_POLY1305 = 7;
    25    XCHACHA20_POLY1305 = 8;
    26    NONE = 9;
    27  }
    28  
    29  message ServerConfig {
    30    repeated xray.common.protocol.User users = 1;
    31    repeated xray.common.net.Network network = 2;
    32  }
    33  
    34  message ClientConfig {
    35    repeated xray.common.protocol.ServerEndpoint server = 1;
    36  }