config.pb.go 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. package outbound
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. unsafe "unsafe"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. type UDPProtocolConfig struct {
  18. state protoimpl.MessageState `protogen:"open.v1"`
  19. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  20. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  21. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
  22. ScramblePacket bool `protobuf:"varint,4,opt,name=scramble_packet,json=scramblePacket,proto3" json:"scramble_packet,omitempty"`
  23. EnableFec bool `protobuf:"varint,5,opt,name=enable_fec,json=enableFec,proto3" json:"enable_fec,omitempty"`
  24. EnableStabilization bool `protobuf:"varint,6,opt,name=enable_stabilization,json=enableStabilization,proto3" json:"enable_stabilization,omitempty"`
  25. EnableRenegotiation bool `protobuf:"varint,7,opt,name=enable_renegotiation,json=enableRenegotiation,proto3" json:"enable_renegotiation,omitempty"`
  26. HandshakeMaskingPaddingSize uint32 `protobuf:"varint,8,opt,name=handshake_masking_padding_size,json=handshakeMaskingPaddingSize,proto3" json:"handshake_masking_padding_size,omitempty"`
  27. unknownFields protoimpl.UnknownFields
  28. sizeCache protoimpl.SizeCache
  29. }
  30. func (x *UDPProtocolConfig) Reset() {
  31. *x = UDPProtocolConfig{}
  32. mi := &file_proxy_vlite_outbound_config_proto_msgTypes[0]
  33. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  34. ms.StoreMessageInfo(mi)
  35. }
  36. func (x *UDPProtocolConfig) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*UDPProtocolConfig) ProtoMessage() {}
  40. func (x *UDPProtocolConfig) ProtoReflect() protoreflect.Message {
  41. mi := &file_proxy_vlite_outbound_config_proto_msgTypes[0]
  42. if x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use UDPProtocolConfig.ProtoReflect.Descriptor instead.
  52. func (*UDPProtocolConfig) Descriptor() ([]byte, []int) {
  53. return file_proxy_vlite_outbound_config_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *UDPProtocolConfig) GetAddress() *net.IPOrDomain {
  56. if x != nil {
  57. return x.Address
  58. }
  59. return nil
  60. }
  61. func (x *UDPProtocolConfig) GetPort() uint32 {
  62. if x != nil {
  63. return x.Port
  64. }
  65. return 0
  66. }
  67. func (x *UDPProtocolConfig) GetPassword() string {
  68. if x != nil {
  69. return x.Password
  70. }
  71. return ""
  72. }
  73. func (x *UDPProtocolConfig) GetScramblePacket() bool {
  74. if x != nil {
  75. return x.ScramblePacket
  76. }
  77. return false
  78. }
  79. func (x *UDPProtocolConfig) GetEnableFec() bool {
  80. if x != nil {
  81. return x.EnableFec
  82. }
  83. return false
  84. }
  85. func (x *UDPProtocolConfig) GetEnableStabilization() bool {
  86. if x != nil {
  87. return x.EnableStabilization
  88. }
  89. return false
  90. }
  91. func (x *UDPProtocolConfig) GetEnableRenegotiation() bool {
  92. if x != nil {
  93. return x.EnableRenegotiation
  94. }
  95. return false
  96. }
  97. func (x *UDPProtocolConfig) GetHandshakeMaskingPaddingSize() uint32 {
  98. if x != nil {
  99. return x.HandshakeMaskingPaddingSize
  100. }
  101. return 0
  102. }
  103. var File_proxy_vlite_outbound_config_proto protoreflect.FileDescriptor
  104. var file_proxy_vlite_outbound_config_proto_rawDesc = string([]byte{
  105. 0x0a, 0x21, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2f, 0x6f, 0x75,
  106. 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72,
  107. 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  108. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x6f, 0x75, 0x74, 0x62,
  109. 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  110. 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
  111. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
  112. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  113. 0x22, 0x8b, 0x03, 0x0a, 0x11, 0x55, 0x44, 0x50, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  114. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  115. 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  116. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  117. 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
  118. 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28,
  119. 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  120. 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77,
  121. 0x6f, 0x72, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x63, 0x72, 0x61, 0x6d, 0x62, 0x6c, 0x65, 0x5f,
  122. 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x73, 0x63,
  123. 0x72, 0x61, 0x6d, 0x62, 0x6c, 0x65, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
  124. 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x65, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
  125. 0x52, 0x09, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x65, 0x63, 0x12, 0x31, 0x0a, 0x14, 0x65,
  126. 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74,
  127. 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  128. 0x65, 0x53, 0x74, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31,
  129. 0x0a, 0x14, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74,
  130. 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x65, 0x6e,
  131. 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x6e, 0x65, 0x67, 0x6f, 0x74, 0x69, 0x61, 0x74, 0x69, 0x6f,
  132. 0x6e, 0x12, 0x43, 0x0a, 0x1e, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x5f, 0x6d,
  133. 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x61, 0x64, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x73,
  134. 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x1b, 0x68, 0x61, 0x6e, 0x64, 0x73,
  135. 0x68, 0x61, 0x6b, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x64, 0x64, 0x69,
  136. 0x6e, 0x67, 0x53, 0x69, 0x7a, 0x65, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x12, 0x0a, 0x08, 0x6f, 0x75,
  137. 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x12, 0x06, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x75, 0x42, 0x7e,
  138. 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  139. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x6f, 0x75, 0x74,
  140. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
  141. 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d,
  142. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c,
  143. 0x69, 0x74, 0x65, 0x2f, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1f, 0x56,
  144. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  145. 0x56, 0x6c, 0x69, 0x74, 0x65, 0x2e, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06,
  146. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  147. })
  148. var (
  149. file_proxy_vlite_outbound_config_proto_rawDescOnce sync.Once
  150. file_proxy_vlite_outbound_config_proto_rawDescData []byte
  151. )
  152. func file_proxy_vlite_outbound_config_proto_rawDescGZIP() []byte {
  153. file_proxy_vlite_outbound_config_proto_rawDescOnce.Do(func() {
  154. file_proxy_vlite_outbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_vlite_outbound_config_proto_rawDesc), len(file_proxy_vlite_outbound_config_proto_rawDesc)))
  155. })
  156. return file_proxy_vlite_outbound_config_proto_rawDescData
  157. }
  158. var file_proxy_vlite_outbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  159. var file_proxy_vlite_outbound_config_proto_goTypes = []any{
  160. (*UDPProtocolConfig)(nil), // 0: v2ray.core.proxy.vlite.outbound.UDPProtocolConfig
  161. (*net.IPOrDomain)(nil), // 1: v2ray.core.common.net.IPOrDomain
  162. }
  163. var file_proxy_vlite_outbound_config_proto_depIdxs = []int32{
  164. 1, // 0: v2ray.core.proxy.vlite.outbound.UDPProtocolConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  165. 1, // [1:1] is the sub-list for method output_type
  166. 1, // [1:1] is the sub-list for method input_type
  167. 1, // [1:1] is the sub-list for extension type_name
  168. 1, // [1:1] is the sub-list for extension extendee
  169. 0, // [0:1] is the sub-list for field type_name
  170. }
  171. func init() { file_proxy_vlite_outbound_config_proto_init() }
  172. func file_proxy_vlite_outbound_config_proto_init() {
  173. if File_proxy_vlite_outbound_config_proto != nil {
  174. return
  175. }
  176. type x struct{}
  177. out := protoimpl.TypeBuilder{
  178. File: protoimpl.DescBuilder{
  179. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  180. RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_vlite_outbound_config_proto_rawDesc), len(file_proxy_vlite_outbound_config_proto_rawDesc)),
  181. NumEnums: 0,
  182. NumMessages: 1,
  183. NumExtensions: 0,
  184. NumServices: 0,
  185. },
  186. GoTypes: file_proxy_vlite_outbound_config_proto_goTypes,
  187. DependencyIndexes: file_proxy_vlite_outbound_config_proto_depIdxs,
  188. MessageInfos: file_proxy_vlite_outbound_config_proto_msgTypes,
  189. }.Build()
  190. File_proxy_vlite_outbound_config_proto = out.File
  191. file_proxy_vlite_outbound_config_proto_goTypes = nil
  192. file_proxy_vlite_outbound_config_proto_depIdxs = nil
  193. }