config.pb.go 10 KB

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