inbound-full.test.ts.snap 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`InboundSchema (full) fixtures > parses vless-tcp-reality byte-stably 1`] = `
  3. {
  4. "down": 0,
  5. "enable": true,
  6. "expiryTime": 0,
  7. "id": 9,
  8. "listen": "",
  9. "port": 443,
  10. "protocol": "vless",
  11. "remark": "dave-vless-tcp-reality",
  12. "settings": {
  13. "clients": [
  14. {
  15. "comment": "",
  16. "email": "[email protected]",
  17. "enable": true,
  18. "expiryTime": 0,
  19. "flow": "xtls-rprx-vision",
  20. "id": "22222222-3333-4444-9555-666666666666",
  21. "limitIp": 0,
  22. "reset": 0,
  23. "subId": "vless-reality-001",
  24. "tgId": 0,
  25. "totalGB": 0,
  26. },
  27. ],
  28. "decryption": "none",
  29. "encryption": "none",
  30. "fallbacks": [],
  31. },
  32. "sniffing": {
  33. "destOverride": [
  34. "http",
  35. "tls",
  36. "quic",
  37. "fakedns",
  38. ],
  39. "domainsExcluded": [],
  40. "enabled": true,
  41. "ipsExcluded": [],
  42. "metadataOnly": false,
  43. "routeOnly": false,
  44. },
  45. "streamSettings": {
  46. "network": "tcp",
  47. "realitySettings": {
  48. "maxClientVer": "",
  49. "maxTimediff": 0,
  50. "minClientVer": "",
  51. "mldsa65Seed": "",
  52. "privateKey": "wM-2_oQRWXyLcXhV5q1ifTBcS3K8mYR3wQI3PqGFK1k",
  53. "serverNames": [
  54. "yahoo.com",
  55. "www.yahoo.com",
  56. ],
  57. "settings": {
  58. "fingerprint": "chrome",
  59. "mldsa65Verify": "",
  60. "publicKey": "Tx5yj1bRcOPHkdvT2pIAQ2zh0gQ8m4OPdnzqXJxxV3o",
  61. "serverName": "",
  62. "spiderX": "/",
  63. },
  64. "shortIds": [
  65. "a3f1",
  66. "b8c2",
  67. ],
  68. "show": false,
  69. "target": "yahoo.com:443",
  70. "xver": 0,
  71. },
  72. "security": "reality",
  73. "tcpSettings": {
  74. "header": {
  75. "type": "none",
  76. },
  77. },
  78. },
  79. "tag": "inbound-vless-reality",
  80. "total": 0,
  81. "up": 0,
  82. }
  83. `;
  84. exports[`InboundSchema (full) fixtures > parses vless-ws-tls byte-stably 1`] = `
  85. {
  86. "down": 0,
  87. "enable": true,
  88. "expiryTime": 0,
  89. "id": 42,
  90. "listen": "",
  91. "port": 443,
  92. "protocol": "vless",
  93. "remark": "alice-vless-ws-tls",
  94. "settings": {
  95. "clients": [
  96. {
  97. "comment": "",
  98. "email": "[email protected]",
  99. "enable": true,
  100. "expiryTime": 0,
  101. "flow": "",
  102. "id": "8c14d6f7-2e3b-4a91-9d24-3f7a6b8c1e02",
  103. "limitIp": 0,
  104. "reset": 0,
  105. "subId": "abc123def",
  106. "tgId": 0,
  107. "totalGB": 0,
  108. },
  109. ],
  110. "decryption": "none",
  111. "encryption": "none",
  112. "fallbacks": [],
  113. },
  114. "sniffing": {
  115. "destOverride": [
  116. "http",
  117. "tls",
  118. "quic",
  119. "fakedns",
  120. ],
  121. "domainsExcluded": [],
  122. "enabled": true,
  123. "ipsExcluded": [],
  124. "metadataOnly": false,
  125. "routeOnly": false,
  126. },
  127. "streamSettings": {
  128. "network": "ws",
  129. "security": "tls",
  130. "tlsSettings": {
  131. "alpn": [
  132. "h2",
  133. "http/1.1",
  134. ],
  135. "certificates": [
  136. {
  137. "buildChain": false,
  138. "certificateFile": "/etc/ssl/certs/cdn.example.test.crt",
  139. "keyFile": "/etc/ssl/private/cdn.example.test.key",
  140. "oneTimeLoading": false,
  141. "usage": "encipherment",
  142. },
  143. ],
  144. "cipherSuites": "",
  145. "disableSystemRoot": false,
  146. "echServerKeys": "",
  147. "enableSessionResumption": false,
  148. "maxVersion": "1.3",
  149. "minVersion": "1.2",
  150. "rejectUnknownSni": false,
  151. "serverName": "cdn.example.test",
  152. "settings": {
  153. "echConfigList": "",
  154. "fingerprint": "chrome",
  155. },
  156. },
  157. "wsSettings": {
  158. "acceptProxyProtocol": false,
  159. "headers": {},
  160. "heartbeatPeriod": 0,
  161. "host": "cdn.example.test",
  162. "path": "/ws",
  163. },
  164. },
  165. "tag": "inbound-vless-1",
  166. "total": 0,
  167. "up": 0,
  168. }
  169. `;
  170. exports[`InboundSchema (full) fixtures > parses vmess-tcp-tls byte-stably 1`] = `
  171. {
  172. "down": 0,
  173. "enable": true,
  174. "expiryTime": 0,
  175. "id": 7,
  176. "listen": "",
  177. "port": 8443,
  178. "protocol": "vmess",
  179. "remark": "carol-vmess-tcp-tls",
  180. "settings": {
  181. "clients": [
  182. {
  183. "comment": "",
  184. "email": "[email protected]",
  185. "enable": true,
  186. "expiryTime": 0,
  187. "id": "11111111-2222-4333-8444-555555555555",
  188. "limitIp": 0,
  189. "reset": 0,
  190. "security": "auto",
  191. "subId": "vmess-001",
  192. "tgId": 0,
  193. "totalGB": 0,
  194. },
  195. ],
  196. },
  197. "sniffing": {
  198. "destOverride": [
  199. "http",
  200. "tls",
  201. "quic",
  202. "fakedns",
  203. ],
  204. "domainsExcluded": [],
  205. "enabled": true,
  206. "ipsExcluded": [],
  207. "metadataOnly": false,
  208. "routeOnly": false,
  209. },
  210. "streamSettings": {
  211. "network": "tcp",
  212. "security": "tls",
  213. "tcpSettings": {
  214. "header": {
  215. "type": "none",
  216. },
  217. },
  218. "tlsSettings": {
  219. "alpn": [
  220. "h2",
  221. "http/1.1",
  222. ],
  223. "certificates": [
  224. {
  225. "buildChain": false,
  226. "certificateFile": "/etc/ssl/certs/vmess.crt",
  227. "keyFile": "/etc/ssl/private/vmess.key",
  228. "oneTimeLoading": false,
  229. "usage": "encipherment",
  230. },
  231. ],
  232. "cipherSuites": "",
  233. "disableSystemRoot": false,
  234. "echServerKeys": "",
  235. "enableSessionResumption": false,
  236. "maxVersion": "1.3",
  237. "minVersion": "1.2",
  238. "rejectUnknownSni": false,
  239. "serverName": "vmess.example.test",
  240. "settings": {
  241. "echConfigList": "",
  242. "fingerprint": "chrome",
  243. },
  244. },
  245. },
  246. "tag": "inbound-vmess-1",
  247. "total": 0,
  248. "up": 0,
  249. }
  250. `;