@@ -110,6 +110,7 @@ describe("parseVLESS", () => {
110110 uuid : UUID ,
111111 tls : true ,
112112 flow : "xtls-rprx-vision" ,
113+ "client-fingerprint" : "chrome" ,
113114 network : "ws" ,
114115 "ws-opts" : {
115116 path : "/ws" ,
@@ -119,14 +120,14 @@ describe("parseVLESS", () => {
119120 } ,
120121 } ) ;
121122 expect ( node ) . not . toHaveProperty ( "reality-opts" ) ;
122- expect ( node ) . not . toHaveProperty ( "client-fingerprint" ) ;
123123
124124 const encodedWithoutPrefix = Buffer . from ( `${ UUID } @shadow-simple.example.com:443` ) . toString ( "base64url" ) ;
125125 expect ( parseVLESS ( `vless://${ encodedWithoutPrefix } ?obfs=websocket&tls=1&xtls=1&tls-verification=false&remark=SimpleSR` ) ) . toMatchObject ( {
126126 name : "SimpleSR" ,
127127 server : "shadow-simple.example.com" ,
128128 uuid : UUID ,
129129 flow : "xtls-rprx-direct" ,
130+ "client-fingerprint" : "chrome" ,
130131 "skip-cert-verify" : true ,
131132 network : "ws" ,
132133 } ) ;
@@ -162,6 +163,7 @@ describe("parseVLESS", () => {
162163 uuid : UUID ,
163164 tls : true ,
164165 servername : "front.example.com" ,
166+ "client-fingerprint" : "chrome" ,
165167 network : "xhttp" ,
166168 "xhttp-opts" : {
167169 path : "/xhttp" ,
@@ -253,6 +255,7 @@ describe("parseVLESS", () => {
253255 } ,
254256 } ) ;
255257 expect ( explicitTls ) . not . toHaveProperty ( "reality-opts" ) ;
258+ expect ( explicitTls ) . not . toHaveProperty ( "client-fingerprint" ) ;
256259 } ) ;
257260
258261 it ( "parses TCP, H2, HTTP Upgrade, and Reality detail variants" , ( ) => {
0 commit comments