config.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.5
  5. // source: transport/internet/config.proto
  6. package internet
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. serial "github.com/v2fly/v2ray-core/v4/common/serial"
  10. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  11. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  12. reflect "reflect"
  13. sync "sync"
  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. //
  166. // Deprecated: Do not use.
  167. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  168. // Type of network that this settings supports.
  169. ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  170. // Specific settings. Must be of the transports.
  171. Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
  172. }
  173. func (x *TransportConfig) Reset() {
  174. *x = TransportConfig{}
  175. if protoimpl.UnsafeEnabled {
  176. mi := &file_transport_internet_config_proto_msgTypes[0]
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. ms.StoreMessageInfo(mi)
  179. }
  180. }
  181. func (x *TransportConfig) String() string {
  182. return protoimpl.X.MessageStringOf(x)
  183. }
  184. func (*TransportConfig) ProtoMessage() {}
  185. func (x *TransportConfig) ProtoReflect() protoreflect.Message {
  186. mi := &file_transport_internet_config_proto_msgTypes[0]
  187. if protoimpl.UnsafeEnabled && x != nil {
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. if ms.LoadMessageInfo() == nil {
  190. ms.StoreMessageInfo(mi)
  191. }
  192. return ms
  193. }
  194. return mi.MessageOf(x)
  195. }
  196. // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
  197. func (*TransportConfig) Descriptor() ([]byte, []int) {
  198. return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
  199. }
  200. // Deprecated: Do not use.
  201. func (x *TransportConfig) GetProtocol() TransportProtocol {
  202. if x != nil {
  203. return x.Protocol
  204. }
  205. return TransportProtocol_TCP
  206. }
  207. func (x *TransportConfig) GetProtocolName() string {
  208. if x != nil {
  209. return x.ProtocolName
  210. }
  211. return ""
  212. }
  213. func (x *TransportConfig) GetSettings() *serial.TypedMessage {
  214. if x != nil {
  215. return x.Settings
  216. }
  217. return nil
  218. }
  219. type StreamConfig struct {
  220. state protoimpl.MessageState
  221. sizeCache protoimpl.SizeCache
  222. unknownFields protoimpl.UnknownFields
  223. // Effective network. Deprecated. Use the string form below.
  224. //
  225. // Deprecated: Do not use.
  226. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  227. // Effective network.
  228. ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  229. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  230. // Type of security. Must be a message name of the settings proto.
  231. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
  232. // Settings for transport security. For now the only choice is TLS.
  233. SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  234. SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
  235. }
  236. func (x *StreamConfig) Reset() {
  237. *x = StreamConfig{}
  238. if protoimpl.UnsafeEnabled {
  239. mi := &file_transport_internet_config_proto_msgTypes[1]
  240. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  241. ms.StoreMessageInfo(mi)
  242. }
  243. }
  244. func (x *StreamConfig) String() string {
  245. return protoimpl.X.MessageStringOf(x)
  246. }
  247. func (*StreamConfig) ProtoMessage() {}
  248. func (x *StreamConfig) ProtoReflect() protoreflect.Message {
  249. mi := &file_transport_internet_config_proto_msgTypes[1]
  250. if protoimpl.UnsafeEnabled && x != nil {
  251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  252. if ms.LoadMessageInfo() == nil {
  253. ms.StoreMessageInfo(mi)
  254. }
  255. return ms
  256. }
  257. return mi.MessageOf(x)
  258. }
  259. // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.
  260. func (*StreamConfig) Descriptor() ([]byte, []int) {
  261. return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
  262. }
  263. // Deprecated: Do not use.
  264. func (x *StreamConfig) GetProtocol() TransportProtocol {
  265. if x != nil {
  266. return x.Protocol
  267. }
  268. return TransportProtocol_TCP
  269. }
  270. func (x *StreamConfig) GetProtocolName() string {
  271. if x != nil {
  272. return x.ProtocolName
  273. }
  274. return ""
  275. }
  276. func (x *StreamConfig) GetTransportSettings() []*TransportConfig {
  277. if x != nil {
  278. return x.TransportSettings
  279. }
  280. return nil
  281. }
  282. func (x *StreamConfig) GetSecurityType() string {
  283. if x != nil {
  284. return x.SecurityType
  285. }
  286. return ""
  287. }
  288. func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {
  289. if x != nil {
  290. return x.SecuritySettings
  291. }
  292. return nil
  293. }
  294. func (x *StreamConfig) GetSocketSettings() *SocketConfig {
  295. if x != nil {
  296. return x.SocketSettings
  297. }
  298. return nil
  299. }
  300. type ProxyConfig struct {
  301. state protoimpl.MessageState
  302. sizeCache protoimpl.SizeCache
  303. unknownFields protoimpl.UnknownFields
  304. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  305. TransportLayerProxy bool `protobuf:"varint,2,opt,name=transportLayerProxy,proto3" json:"transportLayerProxy,omitempty"`
  306. }
  307. func (x *ProxyConfig) Reset() {
  308. *x = ProxyConfig{}
  309. if protoimpl.UnsafeEnabled {
  310. mi := &file_transport_internet_config_proto_msgTypes[2]
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. ms.StoreMessageInfo(mi)
  313. }
  314. }
  315. func (x *ProxyConfig) String() string {
  316. return protoimpl.X.MessageStringOf(x)
  317. }
  318. func (*ProxyConfig) ProtoMessage() {}
  319. func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
  320. mi := &file_transport_internet_config_proto_msgTypes[2]
  321. if protoimpl.UnsafeEnabled && x != nil {
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. if ms.LoadMessageInfo() == nil {
  324. ms.StoreMessageInfo(mi)
  325. }
  326. return ms
  327. }
  328. return mi.MessageOf(x)
  329. }
  330. // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
  331. func (*ProxyConfig) Descriptor() ([]byte, []int) {
  332. return file_transport_internet_config_proto_rawDescGZIP(), []int{2}
  333. }
  334. func (x *ProxyConfig) GetTag() string {
  335. if x != nil {
  336. return x.Tag
  337. }
  338. return ""
  339. }
  340. func (x *ProxyConfig) GetTransportLayerProxy() bool {
  341. if x != nil {
  342. return x.TransportLayerProxy
  343. }
  344. return false
  345. }
  346. // SocketConfig is options to be applied on network sockets.
  347. type SocketConfig struct {
  348. state protoimpl.MessageState
  349. sizeCache protoimpl.SizeCache
  350. unknownFields protoimpl.UnknownFields
  351. // Mark of the connection. If non-zero, the value will be set to SO_MARK.
  352. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
  353. // TFO is the state of TFO settings.
  354. Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"`
  355. // TProxy is for enabling TProxy socket option.
  356. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=v2ray.core.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
  357. // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket
  358. // option. This option is for UDP only.
  359. ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
  360. BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
  361. BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
  362. AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  363. }
  364. func (x *SocketConfig) Reset() {
  365. *x = SocketConfig{}
  366. if protoimpl.UnsafeEnabled {
  367. mi := &file_transport_internet_config_proto_msgTypes[3]
  368. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  369. ms.StoreMessageInfo(mi)
  370. }
  371. }
  372. func (x *SocketConfig) String() string {
  373. return protoimpl.X.MessageStringOf(x)
  374. }
  375. func (*SocketConfig) ProtoMessage() {}
  376. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  377. mi := &file_transport_internet_config_proto_msgTypes[3]
  378. if protoimpl.UnsafeEnabled && x != nil {
  379. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  380. if ms.LoadMessageInfo() == nil {
  381. ms.StoreMessageInfo(mi)
  382. }
  383. return ms
  384. }
  385. return mi.MessageOf(x)
  386. }
  387. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  388. func (*SocketConfig) Descriptor() ([]byte, []int) {
  389. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  390. }
  391. func (x *SocketConfig) GetMark() int32 {
  392. if x != nil {
  393. return x.Mark
  394. }
  395. return 0
  396. }
  397. func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState {
  398. if x != nil {
  399. return x.Tfo
  400. }
  401. return SocketConfig_AsIs
  402. }
  403. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  404. if x != nil {
  405. return x.Tproxy
  406. }
  407. return SocketConfig_Off
  408. }
  409. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  410. if x != nil {
  411. return x.ReceiveOriginalDestAddress
  412. }
  413. return false
  414. }
  415. func (x *SocketConfig) GetBindAddress() []byte {
  416. if x != nil {
  417. return x.BindAddress
  418. }
  419. return nil
  420. }
  421. func (x *SocketConfig) GetBindPort() uint32 {
  422. if x != nil {
  423. return x.BindPort
  424. }
  425. return 0
  426. }
  427. func (x *SocketConfig) GetAcceptProxyProtocol() bool {
  428. if x != nil {
  429. return x.AcceptProxyProtocol
  430. }
  431. return false
  432. }
  433. var File_transport_internet_config_proto protoreflect.FileDescriptor
  434. var file_transport_internet_config_proto_rawDesc = []byte{
  435. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  436. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  437. 0x6f, 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  438. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  439. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  440. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  441. 0x6f, 0x74, 0x6f, 0x22, 0xcc, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  442. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  443. 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61,
  444. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  445. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  446. 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52,
  447. 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f,
  448. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  449. 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42,
  450. 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  451. 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f,
  452. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65,
  453. 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  454. 0x67, 0x73, 0x22, 0xb4, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e,
  455. 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18,
  456. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  457. 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  458. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50,
  459. 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f,
  460. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  461. 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72,
  462. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72,
  463. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  464. 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  465. 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e,
  466. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  467. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  468. 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63,
  469. 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  470. 0x52, 0x0c, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53,
  471. 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69,
  472. 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61,
  473. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65,
  474. 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  475. 0x65, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69,
  476. 0x6e, 0x67, 0x73, 0x12, 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65,
  477. 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76,
  478. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  479. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63,
  480. 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65,
  481. 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x51, 0x0a, 0x0b, 0x50, 0x72, 0x6f,
  482. 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18,
  483. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x30, 0x0a, 0x13, 0x74, 0x72,
  484. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78,
  485. 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  486. 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0xe1, 0x03, 0x0a,
  487. 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a,
  488. 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72,
  489. 0x6b, 0x12, 0x4e, 0x0a, 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c,
  490. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  491. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53,
  492. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x43, 0x50, 0x46,
  493. 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x66,
  494. 0x6f, 0x12, 0x4e, 0x0a, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
  495. 0x0e, 0x32, 0x36, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  496. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  497. 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54,
  498. 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78,
  499. 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69,
  500. 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65,
  501. 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
  502. 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64,
  503. 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64,
  504. 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64,
  505. 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64, 0x5f,
  506. 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64,
  507. 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70,
  508. 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20,
  509. 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79,
  510. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x35, 0x0a, 0x10, 0x54, 0x43, 0x50, 0x46,
  511. 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x08, 0x0a, 0x04,
  512. 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
  513. 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x10, 0x02, 0x22,
  514. 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a,
  515. 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79,
  516. 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02,
  517. 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f,
  518. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10, 0x00, 0x12, 0x07,
  519. 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10,
  520. 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03,
  521. 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f,
  522. 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05, 0x42, 0x78, 0x0a, 0x21,
  523. 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74,
  524. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  525. 0x74, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  526. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  527. 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e,
  528. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x1d, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43,
  529. 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e,
  530. 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  531. }
  532. var (
  533. file_transport_internet_config_proto_rawDescOnce sync.Once
  534. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  535. )
  536. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  537. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  538. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  539. })
  540. return file_transport_internet_config_proto_rawDescData
  541. }
  542. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  543. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  544. var file_transport_internet_config_proto_goTypes = []interface{}{
  545. (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol
  546. (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  547. (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode
  548. (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig
  549. (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig
  550. (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig
  551. (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig
  552. (*serial.TypedMessage)(nil), // 7: v2ray.core.common.serial.TypedMessage
  553. }
  554. var file_transport_internet_config_proto_depIdxs = []int32{
  555. 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  556. 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> v2ray.core.common.serial.TypedMessage
  557. 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  558. 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig
  559. 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> v2ray.core.common.serial.TypedMessage
  560. 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig
  561. 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  562. 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode
  563. 8, // [8:8] is the sub-list for method output_type
  564. 8, // [8:8] is the sub-list for method input_type
  565. 8, // [8:8] is the sub-list for extension type_name
  566. 8, // [8:8] is the sub-list for extension extendee
  567. 0, // [0:8] is the sub-list for field type_name
  568. }
  569. func init() { file_transport_internet_config_proto_init() }
  570. func file_transport_internet_config_proto_init() {
  571. if File_transport_internet_config_proto != nil {
  572. return
  573. }
  574. if !protoimpl.UnsafeEnabled {
  575. file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  576. switch v := v.(*TransportConfig); 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[1].Exporter = func(v interface{}, i int) interface{} {
  588. switch v := v.(*StreamConfig); 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. file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  600. switch v := v.(*ProxyConfig); i {
  601. case 0:
  602. return &v.state
  603. case 1:
  604. return &v.sizeCache
  605. case 2:
  606. return &v.unknownFields
  607. default:
  608. return nil
  609. }
  610. }
  611. file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  612. switch v := v.(*SocketConfig); i {
  613. case 0:
  614. return &v.state
  615. case 1:
  616. return &v.sizeCache
  617. case 2:
  618. return &v.unknownFields
  619. default:
  620. return nil
  621. }
  622. }
  623. }
  624. type x struct{}
  625. out := protoimpl.TypeBuilder{
  626. File: protoimpl.DescBuilder{
  627. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  628. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  629. NumEnums: 3,
  630. NumMessages: 4,
  631. NumExtensions: 0,
  632. NumServices: 0,
  633. },
  634. GoTypes: file_transport_internet_config_proto_goTypes,
  635. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  636. EnumInfos: file_transport_internet_config_proto_enumTypes,
  637. MessageInfos: file_transport_internet_config_proto_msgTypes,
  638. }.Build()
  639. File_transport_internet_config_proto = out.File
  640. file_transport_internet_config_proto_rawDesc = nil
  641. file_transport_internet_config_proto_goTypes = nil
  642. file_transport_internet_config_proto_depIdxs = nil
  643. }