Skip to content

Commit

Permalink
WIP test xtls-rprx-vision vless
Browse files Browse the repository at this point in the history
  • Loading branch information
the2pizza committed Dec 7, 2024
1 parent 0bdb417 commit 42c370a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://<uuid>@<server_ip>:<port>?security=reality&type=grpc&headerType=&serviceName=<grpc_service_name>&authority=&mode=gun&sni=<server_name>&fp=<fingerprint>&pbk=<public_key>&sid=<short_id>#<name>
```

```vmess client connect example
base64
vmess://eyJhZGQiOiAiSVAgQUREUiIsICJhaWQiOiAiMCIsICJob3N0IjogImdvb2dsZS5jb20iLCAiaWQiOiAiVVVJRCIsICJuZXQiOiAidGNwIiwgInBhdGgiOiAiLyIsICJwb3J0IjogPFZtZXNzIFBPUlQ+LCAicHMiOiAiVGhlIG5hbWUgaW4gY2xpZW50IiwgInNjeSI6ICJhdXRvIiwgInRscyI6ICJub25lIiwgInR5cGUiOiAiaHR0cCIsICJ2IjogIjIifQo=
decoded:
{"add": "IP ADDR", "aid": "0", "host": "google.com", "id": "UUID", "net": "tcp", "path": "/", "port": <Vmess PORT>, "ps": "The name in client", "scy": "auto", "tls": "none", "type": "http", "v": "2"}
```
2 changes: 1 addition & 1 deletion src/xray_op/vless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}
}
}
Expand Down

0 comments on commit 42c370a

Please sign in to comment.