github.com/imannamdari/v2ray-core/v5@v5.0.5/proxy/trojan/simplified/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.proxy.trojan.simplified; 4 option csharp_namespace = "V2Ray.Core.Proxy.Trojan.Simplified"; 5 option go_package = "github.com/imannamdari/v2ray-core/v5/proxy/trojan/simplified"; 6 option java_package = "com.v2ray.core.proxy.trojan.simplified"; 7 option java_multiple_files = true; 8 9 import "common/protoext/extensions.proto"; 10 import "common/net/address.proto"; 11 import "common/net/packetaddr/config.proto"; 12 13 message ServerConfig{ 14 option (v2ray.core.common.protoext.message_opt).type = "inbound"; 15 option (v2ray.core.common.protoext.message_opt).short_name = "trojan"; 16 17 repeated string users = 1; 18 v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 2; 19 } 20 21 message ClientConfig { 22 option (v2ray.core.common.protoext.message_opt).type = "outbound"; 23 option (v2ray.core.common.protoext.message_opt).short_name = "trojan"; 24 25 v2ray.core.common.net.IPOrDomain address = 1; 26 uint32 port = 2; 27 string password = 3; 28 }