config.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.21.12
  5. // source: proxy/shadowtls/config.proto
  6. package shadowtls
  7. import (
  8. net "github.com/xtls/xray-core/common/net"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type ServerConfig struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Version uint32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
  25. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  26. Users []*User `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"`
  27. Handshake *HandshakeConfig `protobuf:"bytes,4,opt,name=handshake,proto3" json:"handshake,omitempty"`
  28. HandshakeForServerName map[string]*HandshakeConfig `protobuf:"bytes,5,rep,name=handshake_for_server_name,json=handshakeForServerName,proto3" json:"handshake_for_server_name,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  29. StrictMode bool `protobuf:"varint,6,opt,name=strict_mode,json=strictMode,proto3" json:"strict_mode,omitempty"`
  30. Detour string `protobuf:"bytes,7,opt,name=detour,proto3" json:"detour,omitempty"`
  31. }
  32. func (x *ServerConfig) Reset() {
  33. *x = ServerConfig{}
  34. if protoimpl.UnsafeEnabled {
  35. mi := &file_proxy_shadowtls_config_proto_msgTypes[0]
  36. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  37. ms.StoreMessageInfo(mi)
  38. }
  39. }
  40. func (x *ServerConfig) String() string {
  41. return protoimpl.X.MessageStringOf(x)
  42. }
  43. func (*ServerConfig) ProtoMessage() {}
  44. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  45. mi := &file_proxy_shadowtls_config_proto_msgTypes[0]
  46. if protoimpl.UnsafeEnabled && x != nil {
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. if ms.LoadMessageInfo() == nil {
  49. ms.StoreMessageInfo(mi)
  50. }
  51. return ms
  52. }
  53. return mi.MessageOf(x)
  54. }
  55. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  56. func (*ServerConfig) Descriptor() ([]byte, []int) {
  57. return file_proxy_shadowtls_config_proto_rawDescGZIP(), []int{0}
  58. }
  59. func (x *ServerConfig) GetVersion() uint32 {
  60. if x != nil {
  61. return x.Version
  62. }
  63. return 0
  64. }
  65. func (x *ServerConfig) GetPassword() string {
  66. if x != nil {
  67. return x.Password
  68. }
  69. return ""
  70. }
  71. func (x *ServerConfig) GetUsers() []*User {
  72. if x != nil {
  73. return x.Users
  74. }
  75. return nil
  76. }
  77. func (x *ServerConfig) GetHandshake() *HandshakeConfig {
  78. if x != nil {
  79. return x.Handshake
  80. }
  81. return nil
  82. }
  83. func (x *ServerConfig) GetHandshakeForServerName() map[string]*HandshakeConfig {
  84. if x != nil {
  85. return x.HandshakeForServerName
  86. }
  87. return nil
  88. }
  89. func (x *ServerConfig) GetStrictMode() bool {
  90. if x != nil {
  91. return x.StrictMode
  92. }
  93. return false
  94. }
  95. func (x *ServerConfig) GetDetour() string {
  96. if x != nil {
  97. return x.Detour
  98. }
  99. return ""
  100. }
  101. type HandshakeConfig struct {
  102. state protoimpl.MessageState
  103. sizeCache protoimpl.SizeCache
  104. unknownFields protoimpl.UnknownFields
  105. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  106. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  107. }
  108. func (x *HandshakeConfig) Reset() {
  109. *x = HandshakeConfig{}
  110. if protoimpl.UnsafeEnabled {
  111. mi := &file_proxy_shadowtls_config_proto_msgTypes[1]
  112. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  113. ms.StoreMessageInfo(mi)
  114. }
  115. }
  116. func (x *HandshakeConfig) String() string {
  117. return protoimpl.X.MessageStringOf(x)
  118. }
  119. func (*HandshakeConfig) ProtoMessage() {}
  120. func (x *HandshakeConfig) ProtoReflect() protoreflect.Message {
  121. mi := &file_proxy_shadowtls_config_proto_msgTypes[1]
  122. if protoimpl.UnsafeEnabled && x != nil {
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. if ms.LoadMessageInfo() == nil {
  125. ms.StoreMessageInfo(mi)
  126. }
  127. return ms
  128. }
  129. return mi.MessageOf(x)
  130. }
  131. // Deprecated: Use HandshakeConfig.ProtoReflect.Descriptor instead.
  132. func (*HandshakeConfig) Descriptor() ([]byte, []int) {
  133. return file_proxy_shadowtls_config_proto_rawDescGZIP(), []int{1}
  134. }
  135. func (x *HandshakeConfig) GetAddress() *net.IPOrDomain {
  136. if x != nil {
  137. return x.Address
  138. }
  139. return nil
  140. }
  141. func (x *HandshakeConfig) GetPort() uint32 {
  142. if x != nil {
  143. return x.Port
  144. }
  145. return 0
  146. }
  147. type User struct {
  148. state protoimpl.MessageState
  149. sizeCache protoimpl.SizeCache
  150. unknownFields protoimpl.UnknownFields
  151. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
  152. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  153. Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level,omitempty"`
  154. }
  155. func (x *User) Reset() {
  156. *x = User{}
  157. if protoimpl.UnsafeEnabled {
  158. mi := &file_proxy_shadowtls_config_proto_msgTypes[2]
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. ms.StoreMessageInfo(mi)
  161. }
  162. }
  163. func (x *User) String() string {
  164. return protoimpl.X.MessageStringOf(x)
  165. }
  166. func (*User) ProtoMessage() {}
  167. func (x *User) ProtoReflect() protoreflect.Message {
  168. mi := &file_proxy_shadowtls_config_proto_msgTypes[2]
  169. if protoimpl.UnsafeEnabled && x != nil {
  170. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  171. if ms.LoadMessageInfo() == nil {
  172. ms.StoreMessageInfo(mi)
  173. }
  174. return ms
  175. }
  176. return mi.MessageOf(x)
  177. }
  178. // Deprecated: Use User.ProtoReflect.Descriptor instead.
  179. func (*User) Descriptor() ([]byte, []int) {
  180. return file_proxy_shadowtls_config_proto_rawDescGZIP(), []int{2}
  181. }
  182. func (x *User) GetEmail() string {
  183. if x != nil {
  184. return x.Email
  185. }
  186. return ""
  187. }
  188. func (x *User) GetPassword() string {
  189. if x != nil {
  190. return x.Password
  191. }
  192. return ""
  193. }
  194. func (x *User) GetLevel() int32 {
  195. if x != nil {
  196. return x.Level
  197. }
  198. return 0
  199. }
  200. type ClientConfig struct {
  201. state protoimpl.MessageState
  202. sizeCache protoimpl.SizeCache
  203. unknownFields protoimpl.UnknownFields
  204. Address *net.IPOrDomain `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  205. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
  206. Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
  207. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
  208. }
  209. func (x *ClientConfig) Reset() {
  210. *x = ClientConfig{}
  211. if protoimpl.UnsafeEnabled {
  212. mi := &file_proxy_shadowtls_config_proto_msgTypes[3]
  213. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  214. ms.StoreMessageInfo(mi)
  215. }
  216. }
  217. func (x *ClientConfig) String() string {
  218. return protoimpl.X.MessageStringOf(x)
  219. }
  220. func (*ClientConfig) ProtoMessage() {}
  221. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  222. mi := &file_proxy_shadowtls_config_proto_msgTypes[3]
  223. if protoimpl.UnsafeEnabled && x != nil {
  224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  225. if ms.LoadMessageInfo() == nil {
  226. ms.StoreMessageInfo(mi)
  227. }
  228. return ms
  229. }
  230. return mi.MessageOf(x)
  231. }
  232. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  233. func (*ClientConfig) Descriptor() ([]byte, []int) {
  234. return file_proxy_shadowtls_config_proto_rawDescGZIP(), []int{3}
  235. }
  236. func (x *ClientConfig) GetAddress() *net.IPOrDomain {
  237. if x != nil {
  238. return x.Address
  239. }
  240. return nil
  241. }
  242. func (x *ClientConfig) GetPort() uint32 {
  243. if x != nil {
  244. return x.Port
  245. }
  246. return 0
  247. }
  248. func (x *ClientConfig) GetVersion() uint32 {
  249. if x != nil {
  250. return x.Version
  251. }
  252. return 0
  253. }
  254. func (x *ClientConfig) GetPassword() string {
  255. if x != nil {
  256. return x.Password
  257. }
  258. return ""
  259. }
  260. var File_proxy_shadowtls_config_proto protoreflect.FileDescriptor
  261. var file_proxy_shadowtls_config_proto_rawDesc = []byte{
  262. 0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x74, 0x6c,
  263. 0x73, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x14,
  264. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f,
  265. 0x77, 0x74, 0x6c, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74,
  266. 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe1,
  267. 0x03, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  268. 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  269. 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73,
  270. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73,
  271. 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x03,
  272. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  273. 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x74, 0x6c, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72,
  274. 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x43, 0x0a, 0x09, 0x68, 0x61, 0x6e, 0x64, 0x73,
  275. 0x68, 0x61, 0x6b, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61,
  276. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x74, 0x6c,
  277. 0x73, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  278. 0x67, 0x52, 0x09, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x12, 0x79, 0x0a, 0x19,
  279. 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x5f, 0x73, 0x65,
  280. 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
  281. 0x3e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61,
  282. 0x64, 0x6f, 0x77, 0x74, 0x6c, 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  283. 0x66, 0x69, 0x67, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x46, 0x6f, 0x72,
  284. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  285. 0x16, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x46, 0x6f, 0x72, 0x53, 0x65, 0x72,
  286. 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x63,
  287. 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x73, 0x74,
  288. 0x72, 0x69, 0x63, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x6f,
  289. 0x75, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72,
  290. 0x1a, 0x70, 0x0a, 0x1b, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x46, 0x6f, 0x72,
  291. 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  292. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  293. 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  294. 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68,
  295. 0x61, 0x64, 0x6f, 0x77, 0x74, 0x6c, 0x73, 0x2e, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b,
  296. 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  297. 0x38, 0x01, 0x22, 0x5c, 0x0a, 0x0f, 0x48, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x43,
  298. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  299. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  300. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d,
  301. 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04,
  302. 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74,
  303. 0x22, 0x4e, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69,
  304. 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x1a,
  305. 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
  306. 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
  307. 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  308. 0x22, 0x8f, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  309. 0x67, 0x12, 0x35, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01,
  310. 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  311. 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52,
  312. 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74,
  313. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x18, 0x0a, 0x07,
  314. 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76,
  315. 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  316. 0x72, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f,
  317. 0x72, 0x64, 0x42, 0x5e, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70,
  318. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x74, 0x6c, 0x73, 0x50, 0x01,
  319. 0x5a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  320. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78,
  321. 0x79, 0x2f, 0x73, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x74, 0x6c, 0x73, 0xaa, 0x02, 0x14, 0x58, 0x72,
  322. 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x68, 0x61, 0x64, 0x6f, 0x77, 0x54,
  323. 0x4c, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  324. }
  325. var (
  326. file_proxy_shadowtls_config_proto_rawDescOnce sync.Once
  327. file_proxy_shadowtls_config_proto_rawDescData = file_proxy_shadowtls_config_proto_rawDesc
  328. )
  329. func file_proxy_shadowtls_config_proto_rawDescGZIP() []byte {
  330. file_proxy_shadowtls_config_proto_rawDescOnce.Do(func() {
  331. file_proxy_shadowtls_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_shadowtls_config_proto_rawDescData)
  332. })
  333. return file_proxy_shadowtls_config_proto_rawDescData
  334. }
  335. var file_proxy_shadowtls_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  336. var file_proxy_shadowtls_config_proto_goTypes = []interface{}{
  337. (*ServerConfig)(nil), // 0: xray.proxy.shadowtls.ServerConfig
  338. (*HandshakeConfig)(nil), // 1: xray.proxy.shadowtls.HandshakeConfig
  339. (*User)(nil), // 2: xray.proxy.shadowtls.User
  340. (*ClientConfig)(nil), // 3: xray.proxy.shadowtls.ClientConfig
  341. nil, // 4: xray.proxy.shadowtls.ServerConfig.HandshakeForServerNameEntry
  342. (*net.IPOrDomain)(nil), // 5: xray.common.net.IPOrDomain
  343. }
  344. var file_proxy_shadowtls_config_proto_depIdxs = []int32{
  345. 2, // 0: xray.proxy.shadowtls.ServerConfig.users:type_name -> xray.proxy.shadowtls.User
  346. 1, // 1: xray.proxy.shadowtls.ServerConfig.handshake:type_name -> xray.proxy.shadowtls.HandshakeConfig
  347. 4, // 2: xray.proxy.shadowtls.ServerConfig.handshake_for_server_name:type_name -> xray.proxy.shadowtls.ServerConfig.HandshakeForServerNameEntry
  348. 5, // 3: xray.proxy.shadowtls.HandshakeConfig.address:type_name -> xray.common.net.IPOrDomain
  349. 5, // 4: xray.proxy.shadowtls.ClientConfig.address:type_name -> xray.common.net.IPOrDomain
  350. 1, // 5: xray.proxy.shadowtls.ServerConfig.HandshakeForServerNameEntry.value:type_name -> xray.proxy.shadowtls.HandshakeConfig
  351. 6, // [6:6] is the sub-list for method output_type
  352. 6, // [6:6] is the sub-list for method input_type
  353. 6, // [6:6] is the sub-list for extension type_name
  354. 6, // [6:6] is the sub-list for extension extendee
  355. 0, // [0:6] is the sub-list for field type_name
  356. }
  357. func init() { file_proxy_shadowtls_config_proto_init() }
  358. func file_proxy_shadowtls_config_proto_init() {
  359. if File_proxy_shadowtls_config_proto != nil {
  360. return
  361. }
  362. if !protoimpl.UnsafeEnabled {
  363. file_proxy_shadowtls_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  364. switch v := v.(*ServerConfig); i {
  365. case 0:
  366. return &v.state
  367. case 1:
  368. return &v.sizeCache
  369. case 2:
  370. return &v.unknownFields
  371. default:
  372. return nil
  373. }
  374. }
  375. file_proxy_shadowtls_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  376. switch v := v.(*HandshakeConfig); i {
  377. case 0:
  378. return &v.state
  379. case 1:
  380. return &v.sizeCache
  381. case 2:
  382. return &v.unknownFields
  383. default:
  384. return nil
  385. }
  386. }
  387. file_proxy_shadowtls_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  388. switch v := v.(*User); i {
  389. case 0:
  390. return &v.state
  391. case 1:
  392. return &v.sizeCache
  393. case 2:
  394. return &v.unknownFields
  395. default:
  396. return nil
  397. }
  398. }
  399. file_proxy_shadowtls_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  400. switch v := v.(*ClientConfig); i {
  401. case 0:
  402. return &v.state
  403. case 1:
  404. return &v.sizeCache
  405. case 2:
  406. return &v.unknownFields
  407. default:
  408. return nil
  409. }
  410. }
  411. }
  412. type x struct{}
  413. out := protoimpl.TypeBuilder{
  414. File: protoimpl.DescBuilder{
  415. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  416. RawDescriptor: file_proxy_shadowtls_config_proto_rawDesc,
  417. NumEnums: 0,
  418. NumMessages: 5,
  419. NumExtensions: 0,
  420. NumServices: 0,
  421. },
  422. GoTypes: file_proxy_shadowtls_config_proto_goTypes,
  423. DependencyIndexes: file_proxy_shadowtls_config_proto_depIdxs,
  424. MessageInfos: file_proxy_shadowtls_config_proto_msgTypes,
  425. }.Build()
  426. File_proxy_shadowtls_config_proto = out.File
  427. file_proxy_shadowtls_config_proto_rawDesc = nil
  428. file_proxy_shadowtls_config_proto_goTypes = nil
  429. file_proxy_shadowtls_config_proto_depIdxs = nil
  430. }