| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253 |
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
- exports[`InboundSchema (full) fixtures > parses vless-tcp-reality byte-stably 1`] = `
- {
- "down": 0,
- "enable": true,
- "expiryTime": 0,
- "id": 9,
- "listen": "",
- "port": 443,
- "protocol": "vless",
- "remark": "dave-vless-tcp-reality",
- "settings": {
- "clients": [
- {
- "comment": "",
- "email": "[email protected]",
- "enable": true,
- "expiryTime": 0,
- "flow": "xtls-rprx-vision",
- "id": "22222222-3333-4444-9555-666666666666",
- "limitIp": 0,
- "reset": 0,
- "subId": "vless-reality-001",
- "tgId": 0,
- "totalGB": 0,
- },
- ],
- "decryption": "none",
- "encryption": "none",
- "fallbacks": [],
- },
- "sniffing": {
- "destOverride": [
- "http",
- "tls",
- "quic",
- "fakedns",
- ],
- "domainsExcluded": [],
- "enabled": true,
- "ipsExcluded": [],
- "metadataOnly": false,
- "routeOnly": false,
- },
- "streamSettings": {
- "network": "tcp",
- "realitySettings": {
- "maxClientVer": "",
- "maxTimediff": 0,
- "minClientVer": "",
- "mldsa65Seed": "",
- "privateKey": "wM-2_oQRWXyLcXhV5q1ifTBcS3K8mYR3wQI3PqGFK1k",
- "serverNames": [
- "yahoo.com",
- "www.yahoo.com",
- ],
- "settings": {
- "fingerprint": "chrome",
- "mldsa65Verify": "",
- "publicKey": "Tx5yj1bRcOPHkdvT2pIAQ2zh0gQ8m4OPdnzqXJxxV3o",
- "serverName": "",
- "spiderX": "/",
- },
- "shortIds": [
- "a3f1",
- "b8c2",
- ],
- "show": false,
- "target": "yahoo.com:443",
- "xver": 0,
- },
- "security": "reality",
- "tcpSettings": {
- "header": {
- "type": "none",
- },
- },
- },
- "tag": "inbound-vless-reality",
- "total": 0,
- "up": 0,
- }
- `;
- exports[`InboundSchema (full) fixtures > parses vless-ws-tls byte-stably 1`] = `
- {
- "down": 0,
- "enable": true,
- "expiryTime": 0,
- "id": 42,
- "listen": "",
- "port": 443,
- "protocol": "vless",
- "remark": "alice-vless-ws-tls",
- "settings": {
- "clients": [
- {
- "comment": "",
- "email": "[email protected]",
- "enable": true,
- "expiryTime": 0,
- "flow": "",
- "id": "8c14d6f7-2e3b-4a91-9d24-3f7a6b8c1e02",
- "limitIp": 0,
- "reset": 0,
- "subId": "abc123def",
- "tgId": 0,
- "totalGB": 0,
- },
- ],
- "decryption": "none",
- "encryption": "none",
- "fallbacks": [],
- },
- "sniffing": {
- "destOverride": [
- "http",
- "tls",
- "quic",
- "fakedns",
- ],
- "domainsExcluded": [],
- "enabled": true,
- "ipsExcluded": [],
- "metadataOnly": false,
- "routeOnly": false,
- },
- "streamSettings": {
- "network": "ws",
- "security": "tls",
- "tlsSettings": {
- "alpn": [
- "h2",
- "http/1.1",
- ],
- "certificates": [
- {
- "buildChain": false,
- "certificateFile": "/etc/ssl/certs/cdn.example.test.crt",
- "keyFile": "/etc/ssl/private/cdn.example.test.key",
- "oneTimeLoading": false,
- "usage": "encipherment",
- },
- ],
- "cipherSuites": "",
- "disableSystemRoot": false,
- "echServerKeys": "",
- "enableSessionResumption": false,
- "maxVersion": "1.3",
- "minVersion": "1.2",
- "rejectUnknownSni": false,
- "serverName": "cdn.example.test",
- "settings": {
- "echConfigList": "",
- "fingerprint": "chrome",
- },
- },
- "wsSettings": {
- "acceptProxyProtocol": false,
- "headers": {},
- "heartbeatPeriod": 0,
- "host": "cdn.example.test",
- "path": "/ws",
- },
- },
- "tag": "inbound-vless-1",
- "total": 0,
- "up": 0,
- }
- `;
- exports[`InboundSchema (full) fixtures > parses vmess-tcp-tls byte-stably 1`] = `
- {
- "down": 0,
- "enable": true,
- "expiryTime": 0,
- "id": 7,
- "listen": "",
- "port": 8443,
- "protocol": "vmess",
- "remark": "carol-vmess-tcp-tls",
- "settings": {
- "clients": [
- {
- "comment": "",
- "email": "[email protected]",
- "enable": true,
- "expiryTime": 0,
- "id": "11111111-2222-4333-8444-555555555555",
- "limitIp": 0,
- "reset": 0,
- "security": "auto",
- "subId": "vmess-001",
- "tgId": 0,
- "totalGB": 0,
- },
- ],
- },
- "sniffing": {
- "destOverride": [
- "http",
- "tls",
- "quic",
- "fakedns",
- ],
- "domainsExcluded": [],
- "enabled": true,
- "ipsExcluded": [],
- "metadataOnly": false,
- "routeOnly": false,
- },
- "streamSettings": {
- "network": "tcp",
- "security": "tls",
- "tcpSettings": {
- "header": {
- "type": "none",
- },
- },
- "tlsSettings": {
- "alpn": [
- "h2",
- "http/1.1",
- ],
- "certificates": [
- {
- "buildChain": false,
- "certificateFile": "/etc/ssl/certs/vmess.crt",
- "keyFile": "/etc/ssl/private/vmess.key",
- "oneTimeLoading": false,
- "usage": "encipherment",
- },
- ],
- "cipherSuites": "",
- "disableSystemRoot": false,
- "echServerKeys": "",
- "enableSessionResumption": false,
- "maxVersion": "1.3",
- "minVersion": "1.2",
- "rejectUnknownSni": false,
- "serverName": "vmess.example.test",
- "settings": {
- "echConfigList": "",
- "fingerprint": "chrome",
- },
- },
- },
- "tag": "inbound-vmess-1",
- "total": 0,
- "up": 0,
- }
- `;
|