finalmask.test.ts.snap 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
  2. exports[`FinalMaskStreamSettingsSchema fixtures > parses combined byte-stably 1`] = `
  3. {
  4. "quicParams": {
  5. "brutalDown": "200 mbps",
  6. "brutalUp": "100 mbps",
  7. "congestion": "brutal",
  8. "udpHop": {
  9. "interval": "5-10",
  10. "ports": "10000-20000",
  11. },
  12. },
  13. "tcp": [
  14. {
  15. "settings": {
  16. "packets": "1-3",
  17. },
  18. "type": "fragment",
  19. },
  20. ],
  21. "udp": [
  22. {
  23. "settings": {
  24. "password": "swordfish",
  25. },
  26. "type": "salamander",
  27. },
  28. {
  29. "type": "header-wireguard",
  30. },
  31. ],
  32. }
  33. `;
  34. exports[`FinalMaskStreamSettingsSchema fixtures > parses quic-params byte-stably 1`] = `
  35. {
  36. "quicParams": {
  37. "bbrProfile": "standard",
  38. "congestion": "bbr",
  39. "debug": false,
  40. "disablePathMTUDiscovery": false,
  41. "initConnectionReceiveWindow": 20971520,
  42. "initStreamReceiveWindow": 8388608,
  43. "keepAlivePeriod": 10,
  44. "maxConnectionReceiveWindow": 20971520,
  45. "maxIdleTimeout": 30,
  46. "maxIncomingStreams": 1024,
  47. "maxStreamReceiveWindow": 8388608,
  48. "udpHop": {
  49. "interval": "5-10",
  50. "ports": "20000-50000",
  51. },
  52. },
  53. "tcp": [],
  54. "udp": [],
  55. }
  56. `;
  57. exports[`FinalMaskStreamSettingsSchema fixtures > parses tcp-mask byte-stably 1`] = `
  58. {
  59. "tcp": [
  60. {
  61. "settings": {
  62. "delay": "5-10",
  63. "length": "10-20",
  64. "maxSplit": "0",
  65. "packets": "1-3",
  66. },
  67. "type": "fragment",
  68. },
  69. {
  70. "type": "sudoku",
  71. },
  72. {
  73. "settings": {
  74. "clients": [
  75. [
  76. {
  77. "delay": 0,
  78. "packet": [
  79. "GET / HTTP/1.1",
  80. ],
  81. "type": "str",
  82. },
  83. ],
  84. ],
  85. "errors": [],
  86. "servers": [
  87. [
  88. {
  89. "delay": 0,
  90. "packet": [
  91. "HTTP/1.1 200 OK",
  92. ],
  93. "type": "str",
  94. },
  95. ],
  96. ],
  97. },
  98. "type": "header-custom",
  99. },
  100. ],
  101. "udp": [],
  102. }
  103. `;
  104. exports[`FinalMaskStreamSettingsSchema fixtures > parses udp-mask byte-stably 1`] = `
  105. {
  106. "tcp": [],
  107. "udp": [
  108. {
  109. "settings": {
  110. "password": "swordfish",
  111. },
  112. "type": "salamander",
  113. },
  114. {
  115. "settings": {
  116. "password": "abcdef0123456789",
  117. },
  118. "type": "mkcp-aes128gcm",
  119. },
  120. {
  121. "settings": {
  122. "domain": "cloudflare.com",
  123. },
  124. "type": "header-dns",
  125. },
  126. {
  127. "type": "header-wireguard",
  128. },
  129. {
  130. "settings": {
  131. "noise": [
  132. {
  133. "delay": "10-16",
  134. "rand": "10-20",
  135. "type": "rand",
  136. },
  137. {
  138. "delay": "5",
  139. "packet": [
  140. "ping",
  141. ],
  142. "type": "str",
  143. },
  144. ],
  145. "reset": "60",
  146. },
  147. "type": "noise",
  148. },
  149. {
  150. "settings": {
  151. "domains": [
  152. "example.com:txt",
  153. "example.org:a",
  154. ],
  155. "resolvers": [
  156. "example.com:txt+udp://1.1.1.1:53",
  157. ],
  158. },
  159. "type": "xdns",
  160. },
  161. {
  162. "settings": {
  163. "id": 0,
  164. "listenIp": "0.0.0.0",
  165. },
  166. "type": "xicmp",
  167. },
  168. ],
  169. }
  170. `;