config.pb.go 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.13.0
  5. // source: transport/internet/config.proto
  6. package internet
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. serial "v2ray.com/core/common/serial"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  24. type TransportProtocol int32
  25. const (
  26. TransportProtocol_TCP TransportProtocol = 0
  27. TransportProtocol_UDP TransportProtocol = 1
  28. TransportProtocol_MKCP TransportProtocol = 2
  29. TransportProtocol_WebSocket TransportProtocol = 3
  30. TransportProtocol_HTTP TransportProtocol = 4
  31. TransportProtocol_DomainSocket TransportProtocol = 5
  32. )
  33. // Enum value maps for TransportProtocol.
  34. var (
  35. TransportProtocol_name = map[int32]string{
  36. 0: "TCP",
  37. 1: "UDP",
  38. 2: "MKCP",
  39. 3: "WebSocket",
  40. 4: "HTTP",
  41. 5: "DomainSocket",
  42. }
  43. TransportProtocol_value = map[string]int32{
  44. "TCP": 0,
  45. "UDP": 1,
  46. "MKCP": 2,
  47. "WebSocket": 3,
  48. "HTTP": 4,
  49. "DomainSocket": 5,
  50. }
  51. )
  52. func (x TransportProtocol) Enum() *TransportProtocol {
  53. p := new(TransportProtocol)
  54. *p = x
  55. return p
  56. }
  57. func (x TransportProtocol) String() string {
  58. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  59. }
  60. func (TransportProtocol) Descriptor() protoreflect.EnumDescriptor {
  61. return file_transport_internet_config_proto_enumTypes[0].Descriptor()
  62. }
  63. func (TransportProtocol) Type() protoreflect.EnumType {
  64. return &file_transport_internet_config_proto_enumTypes[0]
  65. }
  66. func (x TransportProtocol) Number() protoreflect.EnumNumber {
  67. return protoreflect.EnumNumber(x)
  68. }
  69. // Deprecated: Use TransportProtocol.Descriptor instead.
  70. func (TransportProtocol) EnumDescriptor() ([]byte, []int) {
  71. return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
  72. }
  73. type SocketConfig_TCPFastOpenState int32
  74. const (
  75. // AsIs is to leave the current TFO state as is, unmodified.
  76. SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0
  77. // Enable is for enabling TFO explictly.
  78. SocketConfig_Enable SocketConfig_TCPFastOpenState = 1
  79. // Disable is for disabling TFO explictly.
  80. SocketConfig_Disable SocketConfig_TCPFastOpenState = 2
  81. )
  82. // Enum value maps for SocketConfig_TCPFastOpenState.
  83. var (
  84. SocketConfig_TCPFastOpenState_name = map[int32]string{
  85. 0: "AsIs",
  86. 1: "Enable",
  87. 2: "Disable",
  88. }
  89. SocketConfig_TCPFastOpenState_value = map[string]int32{
  90. "AsIs": 0,
  91. "Enable": 1,
  92. "Disable": 2,
  93. }
  94. )
  95. func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState {
  96. p := new(SocketConfig_TCPFastOpenState)
  97. *p = x
  98. return p
  99. }
  100. func (x SocketConfig_TCPFastOpenState) String() string {
  101. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  102. }
  103. func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor {
  104. return file_transport_internet_config_proto_enumTypes[1].Descriptor()
  105. }
  106. func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType {
  107. return &file_transport_internet_config_proto_enumTypes[1]
  108. }
  109. func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber {
  110. return protoreflect.EnumNumber(x)
  111. }
  112. // Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead.
  113. func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) {
  114. return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 0}
  115. }
  116. type SocketConfig_TProxyMode int32
  117. const (
  118. // TProxy is off.
  119. SocketConfig_Off SocketConfig_TProxyMode = 0
  120. // TProxy mode.
  121. SocketConfig_TProxy SocketConfig_TProxyMode = 1
  122. // Redirect mode.
  123. SocketConfig_Redirect SocketConfig_TProxyMode = 2
  124. )
  125. // Enum value maps for SocketConfig_TProxyMode.
  126. var (
  127. SocketConfig_TProxyMode_name = map[int32]string{
  128. 0: "Off",
  129. 1: "TProxy",
  130. 2: "Redirect",
  131. }
  132. SocketConfig_TProxyMode_value = map[string]int32{
  133. "Off": 0,
  134. "TProxy": 1,
  135. "Redirect": 2,
  136. }
  137. )
  138. func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode {
  139. p := new(SocketConfig_TProxyMode)
  140. *p = x
  141. return p
  142. }
  143. func (x SocketConfig_TProxyMode) String() string {
  144. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  145. }
  146. func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor {
  147. return file_transport_internet_config_proto_enumTypes[2].Descriptor()
  148. }
  149. func (SocketConfig_TProxyMode) Type() protoreflect.EnumType {
  150. return &file_transport_internet_config_proto_enumTypes[2]
  151. }
  152. func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber {
  153. return protoreflect.EnumNumber(x)
  154. }
  155. // Deprecated: Use SocketConfig_TProxyMode.Descriptor instead.
  156. func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) {
  157. return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 1}
  158. }
  159. type TransportConfig struct {
  160. state protoimpl.MessageState
  161. sizeCache protoimpl.SizeCache
  162. unknownFields protoimpl.UnknownFields
  163. // Type of network that this settings supports.
  164. // Deprecated. Use the string form below.
  165. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  166. // Type of network that this settings supports.
  167. ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  168. // Specific settings. Must be of the transports.
  169. Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
  170. }
  171. func (x *TransportConfig) Reset() {
  172. *x = TransportConfig{}
  173. if protoimpl.UnsafeEnabled {
  174. mi := &file_transport_internet_config_proto_msgTypes[0]
  175. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  176. ms.StoreMessageInfo(mi)
  177. }
  178. }
  179. func (x *TransportConfig) String() string {
  180. return protoimpl.X.MessageStringOf(x)
  181. }
  182. func (*TransportConfig) ProtoMessage() {}
  183. func (x *TransportConfig) ProtoReflect() protoreflect.Message {
  184. mi := &file_transport_internet_config_proto_msgTypes[0]
  185. if protoimpl.UnsafeEnabled && x != nil {
  186. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  187. if ms.LoadMessageInfo() == nil {
  188. ms.StoreMessageInfo(mi)
  189. }
  190. return ms
  191. }
  192. return mi.MessageOf(x)
  193. }
  194. // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
  195. func (*TransportConfig) Descriptor() ([]byte, []int) {
  196. return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
  197. }
  198. func (x *TransportConfig) GetProtocol() TransportProtocol {
  199. if x != nil {
  200. return x.Protocol
  201. }
  202. return TransportProtocol_TCP
  203. }
  204. func (x *TransportConfig) GetProtocolName() string {
  205. if x != nil {
  206. return x.ProtocolName
  207. }
  208. return ""
  209. }
  210. func (x *TransportConfig) GetSettings() *serial.TypedMessage {
  211. if x != nil {
  212. return x.Settings
  213. }
  214. return nil
  215. }
  216. type StreamConfig struct {
  217. state protoimpl.MessageState
  218. sizeCache protoimpl.SizeCache
  219. unknownFields protoimpl.UnknownFields
  220. // Effective network. Deprecated. Use the string form below.
  221. //
  222. // Deprecated: Do not use.
  223. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  224. // Effective network.
  225. ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  226. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  227. // Type of security. Must be a message name of the settings proto.
  228. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
  229. // Settings for transport security. For now the only choice is TLS.
  230. SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  231. SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
  232. }
  233. func (x *StreamConfig) Reset() {
  234. *x = StreamConfig{}
  235. if protoimpl.UnsafeEnabled {
  236. mi := &file_transport_internet_config_proto_msgTypes[1]
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. ms.StoreMessageInfo(mi)
  239. }
  240. }
  241. func (x *StreamConfig) String() string {
  242. return protoimpl.X.MessageStringOf(x)
  243. }
  244. func (*StreamConfig) ProtoMessage() {}
  245. func (x *StreamConfig) ProtoReflect() protoreflect.Message {
  246. mi := &file_transport_internet_config_proto_msgTypes[1]
  247. if protoimpl.UnsafeEnabled && x != nil {
  248. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  249. if ms.LoadMessageInfo() == nil {
  250. ms.StoreMessageInfo(mi)
  251. }
  252. return ms
  253. }
  254. return mi.MessageOf(x)
  255. }
  256. // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.
  257. func (*StreamConfig) Descriptor() ([]byte, []int) {
  258. return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
  259. }
  260. // Deprecated: Do not use.
  261. func (x *StreamConfig) GetProtocol() TransportProtocol {
  262. if x != nil {
  263. return x.Protocol
  264. }
  265. return TransportProtocol_TCP
  266. }
  267. func (x *StreamConfig) GetProtocolName() string {
  268. if x != nil {
  269. return x.ProtocolName
  270. }
  271. return ""
  272. }
  273. func (x *StreamConfig) GetTransportSettings() []*TransportConfig {
  274. if x != nil {
  275. return x.TransportSettings
  276. }
  277. return nil
  278. }
  279. func (x *StreamConfig) GetSecurityType() string {
  280. if x != nil {
  281. return x.SecurityType
  282. }
  283. return ""
  284. }
  285. func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {
  286. if x != nil {
  287. return x.SecuritySettings
  288. }
  289. return nil
  290. }
  291. func (x *StreamConfig) GetSocketSettings() *SocketConfig {
  292. if x != nil {
  293. return x.SocketSettings
  294. }
  295. return nil
  296. }
  297. type ProxyConfig struct {
  298. state protoimpl.MessageState
  299. sizeCache protoimpl.SizeCache
  300. unknownFields protoimpl.UnknownFields
  301. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  302. }
  303. func (x *ProxyConfig) Reset() {
  304. *x = ProxyConfig{}
  305. if protoimpl.UnsafeEnabled {
  306. mi := &file_transport_internet_config_proto_msgTypes[2]
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. ms.StoreMessageInfo(mi)
  309. }
  310. }
  311. func (x *ProxyConfig) String() string {
  312. return protoimpl.X.MessageStringOf(x)
  313. }
  314. func (*ProxyConfig) ProtoMessage() {}
  315. func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
  316. mi := &file_transport_internet_config_proto_msgTypes[2]
  317. if protoimpl.UnsafeEnabled && x != nil {
  318. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  319. if ms.LoadMessageInfo() == nil {
  320. ms.StoreMessageInfo(mi)
  321. }
  322. return ms
  323. }
  324. return mi.MessageOf(x)
  325. }
  326. // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
  327. func (*ProxyConfig) Descriptor() ([]byte, []int) {
  328. return file_transport_internet_config_proto_rawDescGZIP(), []int{2}
  329. }
  330. func (x *ProxyConfig) GetTag() string {
  331. if x != nil {
  332. return x.Tag
  333. }
  334. return ""
  335. }
  336. // SocketConfig is options to be applied on network sockets.
  337. type SocketConfig struct {
  338. state protoimpl.MessageState
  339. sizeCache protoimpl.SizeCache
  340. unknownFields protoimpl.UnknownFields
  341. // Mark of the connection. If non-zero, the value will be set to SO_MARK.
  342. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
  343. // TFO is the state of TFO settings.
  344. Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"`
  345. // TProxy is for enabling TProxy socket option.
  346. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=v2ray.core.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
  347. // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket option.
  348. // This option is for UDP only.
  349. ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
  350. BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
  351. BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
  352. }
  353. func (x *SocketConfig) Reset() {
  354. *x = SocketConfig{}
  355. if protoimpl.UnsafeEnabled {
  356. mi := &file_transport_internet_config_proto_msgTypes[3]
  357. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  358. ms.StoreMessageInfo(mi)
  359. }
  360. }
  361. func (x *SocketConfig) String() string {
  362. return protoimpl.X.MessageStringOf(x)
  363. }
  364. func (*SocketConfig) ProtoMessage() {}
  365. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  366. mi := &file_transport_internet_config_proto_msgTypes[3]
  367. if protoimpl.UnsafeEnabled && x != nil {
  368. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  369. if ms.LoadMessageInfo() == nil {
  370. ms.StoreMessageInfo(mi)
  371. }
  372. return ms
  373. }
  374. return mi.MessageOf(x)
  375. }
  376. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  377. func (*SocketConfig) Descriptor() ([]byte, []int) {
  378. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  379. }
  380. func (x *SocketConfig) GetMark() int32 {
  381. if x != nil {
  382. return x.Mark
  383. }
  384. return 0
  385. }
  386. func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState {
  387. if x != nil {
  388. return x.Tfo
  389. }
  390. return SocketConfig_AsIs
  391. }
  392. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  393. if x != nil {
  394. return x.Tproxy
  395. }
  396. return SocketConfig_Off
  397. }
  398. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  399. if x != nil {
  400. return x.ReceiveOriginalDestAddress
  401. }
  402. return false
  403. }
  404. func (x *SocketConfig) GetBindAddress() []byte {
  405. if x != nil {
  406. return x.BindAddress
  407. }
  408. return nil
  409. }
  410. func (x *SocketConfig) GetBindPort() uint32 {
  411. if x != nil {
  412. return x.BindPort
  413. }
  414. return 0
  415. }
  416. var File_transport_internet_config_proto protoreflect.FileDescriptor
  417. var file_transport_internet_config_proto_rawDesc = []byte{
  418. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  419. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  420. 0x6f, 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  421. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  422. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  423. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  424. 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  425. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  426. 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61,
  427. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  428. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  429. 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f,
  430. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  431. 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72,
  432. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x65,
  433. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76,
  434. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  435. 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73,
  436. 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb4,
  437. 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  438. 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
  439. 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  440. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  441. 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
  442. 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  443. 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61,
  444. 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  445. 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  446. 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03,
  447. 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  448. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  449. 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66,
  450. 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74,
  451. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
  452. 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65,
  453. 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x73, 0x65,
  454. 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  455. 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  456. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  457. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73,
  458. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12,
  459. 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  460. 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  461. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  462. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  463. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74,
  464. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f,
  465. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  466. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0xad, 0x03, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65,
  467. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18,
  468. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x4e, 0x0a, 0x03, 0x74,
  469. 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  470. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  471. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  472. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65,
  473. 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x06, 0x74,
  474. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x76, 0x32,
  475. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  476. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b,
  477. 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d,
  478. 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72,
  479. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f,
  480. 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01,
  481. 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69,
  482. 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21,
  483. 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05,
  484. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
  485. 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06,
  486. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x35,
  487. 0x0a, 0x10, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61,
  488. 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
  489. 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x61,
  490. 0x62, 0x6c, 0x65, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d,
  491. 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
  492. 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69,
  493. 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  494. 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54,
  495. 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a,
  496. 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f,
  497. 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04,
  498. 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  499. 0x10, 0x05, 0x42, 0x68, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  500. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  501. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79,
  502. 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  503. 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x1d, 0x56,
  504. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  505. 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72,
  506. 0x6f, 0x74, 0x6f, 0x33,
  507. }
  508. var (
  509. file_transport_internet_config_proto_rawDescOnce sync.Once
  510. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  511. )
  512. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  513. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  514. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  515. })
  516. return file_transport_internet_config_proto_rawDescData
  517. }
  518. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  519. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  520. var file_transport_internet_config_proto_goTypes = []interface{}{
  521. (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol
  522. (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  523. (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode
  524. (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig
  525. (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig
  526. (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig
  527. (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig
  528. (*serial.TypedMessage)(nil), // 7: v2ray.core.common.serial.TypedMessage
  529. }
  530. var file_transport_internet_config_proto_depIdxs = []int32{
  531. 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  532. 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> v2ray.core.common.serial.TypedMessage
  533. 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  534. 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig
  535. 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> v2ray.core.common.serial.TypedMessage
  536. 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig
  537. 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  538. 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode
  539. 8, // [8:8] is the sub-list for method output_type
  540. 8, // [8:8] is the sub-list for method input_type
  541. 8, // [8:8] is the sub-list for extension type_name
  542. 8, // [8:8] is the sub-list for extension extendee
  543. 0, // [0:8] is the sub-list for field type_name
  544. }
  545. func init() { file_transport_internet_config_proto_init() }
  546. func file_transport_internet_config_proto_init() {
  547. if File_transport_internet_config_proto != nil {
  548. return
  549. }
  550. if !protoimpl.UnsafeEnabled {
  551. file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  552. switch v := v.(*TransportConfig); i {
  553. case 0:
  554. return &v.state
  555. case 1:
  556. return &v.sizeCache
  557. case 2:
  558. return &v.unknownFields
  559. default:
  560. return nil
  561. }
  562. }
  563. file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  564. switch v := v.(*StreamConfig); i {
  565. case 0:
  566. return &v.state
  567. case 1:
  568. return &v.sizeCache
  569. case 2:
  570. return &v.unknownFields
  571. default:
  572. return nil
  573. }
  574. }
  575. file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  576. switch v := v.(*ProxyConfig); i {
  577. case 0:
  578. return &v.state
  579. case 1:
  580. return &v.sizeCache
  581. case 2:
  582. return &v.unknownFields
  583. default:
  584. return nil
  585. }
  586. }
  587. file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  588. switch v := v.(*SocketConfig); i {
  589. case 0:
  590. return &v.state
  591. case 1:
  592. return &v.sizeCache
  593. case 2:
  594. return &v.unknownFields
  595. default:
  596. return nil
  597. }
  598. }
  599. }
  600. type x struct{}
  601. out := protoimpl.TypeBuilder{
  602. File: protoimpl.DescBuilder{
  603. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  604. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  605. NumEnums: 3,
  606. NumMessages: 4,
  607. NumExtensions: 0,
  608. NumServices: 0,
  609. },
  610. GoTypes: file_transport_internet_config_proto_goTypes,
  611. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  612. EnumInfos: file_transport_internet_config_proto_enumTypes,
  613. MessageInfos: file_transport_internet_config_proto_msgTypes,
  614. }.Build()
  615. File_transport_internet_config_proto = out.File
  616. file_transport_internet_config_proto_rawDesc = nil
  617. file_transport_internet_config_proto_goTypes = nil
  618. file_transport_internet_config_proto_depIdxs = nil
  619. }