github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/proxy/shadowsocks/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.proxy.shadowsocks; 4 option csharp_namespace = "V2Ray.Core.Proxy.Shadowsocks"; 5 option go_package = "github.com/v2fly/v2ray-core/v5/proxy/shadowsocks"; 6 option java_package = "com.v2ray.core.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 import "common/net/packetaddr/config.proto"; 13 14 message Account { 15 string password = 1; 16 CipherType cipher_type = 2; 17 18 bool iv_check = 3; 19 bool experiment_reduced_iv_head_entropy = 90001; 20 } 21 22 enum CipherType { 23 UNKNOWN = 0; 24 AES_128_GCM = 1; 25 AES_256_GCM = 2; 26 CHACHA20_POLY1305 = 3; 27 NONE = 4; 28 } 29 30 message ServerConfig { 31 // UdpEnabled specified whether or not to enable UDP for Shadowsocks. 32 // Deprecated. Use 'network' field. 33 bool udp_enabled = 1 [deprecated = true]; 34 v2ray.core.common.protocol.User user = 2; 35 repeated v2ray.core.common.net.Network network = 3; 36 v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 4; 37 } 38 39 message ClientConfig { 40 repeated v2ray.core.common.protocol.ServerEndpoint server = 1; 41 }