config.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  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
  348. // option. 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. AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  353. }
  354. func (x *SocketConfig) Reset() {
  355. *x = SocketConfig{}
  356. if protoimpl.UnsafeEnabled {
  357. mi := &file_transport_internet_config_proto_msgTypes[3]
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. ms.StoreMessageInfo(mi)
  360. }
  361. }
  362. func (x *SocketConfig) String() string {
  363. return protoimpl.X.MessageStringOf(x)
  364. }
  365. func (*SocketConfig) ProtoMessage() {}
  366. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  367. mi := &file_transport_internet_config_proto_msgTypes[3]
  368. if protoimpl.UnsafeEnabled && x != nil {
  369. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  370. if ms.LoadMessageInfo() == nil {
  371. ms.StoreMessageInfo(mi)
  372. }
  373. return ms
  374. }
  375. return mi.MessageOf(x)
  376. }
  377. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  378. func (*SocketConfig) Descriptor() ([]byte, []int) {
  379. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  380. }
  381. func (x *SocketConfig) GetMark() int32 {
  382. if x != nil {
  383. return x.Mark
  384. }
  385. return 0
  386. }
  387. func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState {
  388. if x != nil {
  389. return x.Tfo
  390. }
  391. return SocketConfig_AsIs
  392. }
  393. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  394. if x != nil {
  395. return x.Tproxy
  396. }
  397. return SocketConfig_Off
  398. }
  399. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  400. if x != nil {
  401. return x.ReceiveOriginalDestAddress
  402. }
  403. return false
  404. }
  405. func (x *SocketConfig) GetBindAddress() []byte {
  406. if x != nil {
  407. return x.BindAddress
  408. }
  409. return nil
  410. }
  411. func (x *SocketConfig) GetBindPort() uint32 {
  412. if x != nil {
  413. return x.BindPort
  414. }
  415. return 0
  416. }
  417. func (x *SocketConfig) GetAcceptProxyProtocol() bool {
  418. if x != nil {
  419. return x.AcceptProxyProtocol
  420. }
  421. return false
  422. }
  423. var File_transport_internet_config_proto protoreflect.FileDescriptor
  424. var file_transport_internet_config_proto_rawDesc = []byte{
  425. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  426. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  427. 0x6f, 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  428. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  429. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  430. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  431. 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  432. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  433. 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61,
  434. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  435. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  436. 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f,
  437. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  438. 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72,
  439. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x08, 0x73, 0x65,
  440. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76,
  441. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  442. 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73,
  443. 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0xb4,
  444. 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  445. 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
  446. 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  447. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  448. 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f,
  449. 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  450. 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61,
  451. 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  452. 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  453. 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03,
  454. 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  455. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  456. 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66,
  457. 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74,
  458. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74,
  459. 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65,
  460. 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x11, 0x73, 0x65,
  461. 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18,
  462. 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  463. 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  464. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73,
  465. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12,
  466. 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  467. 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  468. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  469. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  470. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74,
  471. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x1f, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f,
  472. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  473. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0xe1, 0x03, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65,
  474. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18,
  475. 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x4e, 0x0a, 0x03, 0x74,
  476. 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  477. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  478. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  479. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65,
  480. 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x4e, 0x0a, 0x06, 0x74,
  481. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e, 0x76, 0x32,
  482. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  483. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b,
  484. 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d,
  485. 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72,
  486. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f,
  487. 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01,
  488. 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69,
  489. 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21,
  490. 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05,
  491. 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
  492. 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06,
  493. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32,
  494. 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70,
  495. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61,
  496. 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63,
  497. 0x6f, 0x6c, 0x22, 0x35, 0x0a, 0x10, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65,
  498. 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00,
  499. 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
  500. 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72,
  501. 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00,
  502. 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
  503. 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72,
  504. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12,
  505. 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10,
  506. 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57,
  507. 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54,
  508. 0x54, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f,
  509. 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05, 0x42, 0x68, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32,
  510. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  511. 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x21, 0x76,
  512. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72,
  513. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  514. 0xaa, 0x02, 0x1d, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72,
  515. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  516. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  517. }
  518. var (
  519. file_transport_internet_config_proto_rawDescOnce sync.Once
  520. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  521. )
  522. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  523. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  524. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  525. })
  526. return file_transport_internet_config_proto_rawDescData
  527. }
  528. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  529. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  530. var file_transport_internet_config_proto_goTypes = []interface{}{
  531. (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol
  532. (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  533. (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode
  534. (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig
  535. (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig
  536. (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig
  537. (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig
  538. (*serial.TypedMessage)(nil), // 7: v2ray.core.common.serial.TypedMessage
  539. }
  540. var file_transport_internet_config_proto_depIdxs = []int32{
  541. 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  542. 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> v2ray.core.common.serial.TypedMessage
  543. 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  544. 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig
  545. 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> v2ray.core.common.serial.TypedMessage
  546. 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig
  547. 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  548. 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode
  549. 8, // [8:8] is the sub-list for method output_type
  550. 8, // [8:8] is the sub-list for method input_type
  551. 8, // [8:8] is the sub-list for extension type_name
  552. 8, // [8:8] is the sub-list for extension extendee
  553. 0, // [0:8] is the sub-list for field type_name
  554. }
  555. func init() { file_transport_internet_config_proto_init() }
  556. func file_transport_internet_config_proto_init() {
  557. if File_transport_internet_config_proto != nil {
  558. return
  559. }
  560. if !protoimpl.UnsafeEnabled {
  561. file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  562. switch v := v.(*TransportConfig); i {
  563. case 0:
  564. return &v.state
  565. case 1:
  566. return &v.sizeCache
  567. case 2:
  568. return &v.unknownFields
  569. default:
  570. return nil
  571. }
  572. }
  573. file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  574. switch v := v.(*StreamConfig); i {
  575. case 0:
  576. return &v.state
  577. case 1:
  578. return &v.sizeCache
  579. case 2:
  580. return &v.unknownFields
  581. default:
  582. return nil
  583. }
  584. }
  585. file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  586. switch v := v.(*ProxyConfig); i {
  587. case 0:
  588. return &v.state
  589. case 1:
  590. return &v.sizeCache
  591. case 2:
  592. return &v.unknownFields
  593. default:
  594. return nil
  595. }
  596. }
  597. file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  598. switch v := v.(*SocketConfig); i {
  599. case 0:
  600. return &v.state
  601. case 1:
  602. return &v.sizeCache
  603. case 2:
  604. return &v.unknownFields
  605. default:
  606. return nil
  607. }
  608. }
  609. }
  610. type x struct{}
  611. out := protoimpl.TypeBuilder{
  612. File: protoimpl.DescBuilder{
  613. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  614. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  615. NumEnums: 3,
  616. NumMessages: 4,
  617. NumExtensions: 0,
  618. NumServices: 0,
  619. },
  620. GoTypes: file_transport_internet_config_proto_goTypes,
  621. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  622. EnumInfos: file_transport_internet_config_proto_enumTypes,
  623. MessageInfos: file_transport_internet_config_proto_msgTypes,
  624. }.Build()
  625. File_transport_internet_config_proto = out.File
  626. file_transport_internet_config_proto_rawDesc = nil
  627. file_transport_internet_config_proto_goTypes = nil
  628. file_transport_internet_config_proto_depIdxs = nil
  629. }