github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/trojan/config.proto (about)

     1  syntax = "proto3";
     2  
     3  package v2ray.core.proxy.trojan;
     4  option csharp_namespace = "V2Ray.Core.Proxy.Trojan";
     5  option go_package = "github.com/v2fly/v2ray-core/v5/proxy/trojan";
     6  option java_package = "com.v2ray.core.proxy.trojan";
     7  option java_multiple_files = true;
     8  
     9  import "common/protocol/user.proto";
    10  import "common/protocol/server_spec.proto";
    11  import "common/net/packetaddr/config.proto";
    12  
    13  message Account {
    14    string password = 1;
    15  }
    16  
    17  message Fallback {
    18    string alpn = 1;
    19    string path = 2;
    20    string type = 3;
    21    string dest = 4;
    22    uint64 xver = 5;
    23  }
    24  
    25  message ClientConfig {
    26    repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
    27  }
    28  
    29  message ServerConfig {
    30    repeated v2ray.core.common.protocol.User users = 1;
    31    repeated Fallback fallbacks = 3;
    32    v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 4;
    33  }