diff --git a/README.md b/README.md index 86fb6b31..a85a63a6 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,20 @@ Prerequisites - [cross](https://github.com/cross-rs/cross) ```crosscompile cross build --target x86_64-unknown-linux-gnu ``` + + + +```vless client connect example +vless://@:?security=reality&type=grpc&headerType=&serviceName=&authority=&mode=gun&sni=&fp=&pbk=&sid=# + +``` + +```vmess client connect example +base64 +vmess://eyJhZGQiOiAiSVAgQUREUiIsICJhaWQiOiAiMCIsICJob3N0IjogImdvb2dsZS5jb20iLCAiaWQiOiAiVVVJRCIsICJuZXQiOiAidGNwIiwgInBhdGgiOiAiLyIsICJwb3J0IjogPFZtZXNzIFBPUlQ+LCAicHMiOiAiVGhlIG5hbWUgaW4gY2xpZW50IiwgInNjeSI6ICJhdXRvIiwgInRscyI6ICJub25lIiwgInR5cGUiOiAiaHR0cCIsICJ2IjogIjIifQo= + +decoded: + +{"add": "IP ADDR", "aid": "0", "host": "google.com", "id": "UUID", "net": "tcp", "path": "/", "port": , "ps": "The name in client", "scy": "auto", "tls": "none", "type": "http", "v": "2"} + +``` diff --git a/src/xray_op/vless.rs b/src/xray_op/vless.rs index c983a4b9..f7b2e816 100644 --- a/src/xray_op/vless.rs +++ b/src/xray_op/vless.rs @@ -27,7 +27,7 @@ impl UserInfo { email: format!("{}@{}", uuid, in_tag), uuid: uuid, encryption: Some("none".to_string()), - flow: Some("xtls-rprx-direct".to_string()), + flow: Some("xtls-rprx-vision".to_string()), } } }