From 7c62faea018ec996fb364b5533afd48350e6c9e0 Mon Sep 17 00:00:00 2001 From: quackerd Date: Mon, 2 Jan 2023 15:30:40 +0100 Subject: [PATCH] default to xtls-rprx-vision --- README.md | 2 +- opt/init.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6977f7e..8a747f7 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ d2ray is a single Docker container that provides easy and braindead configuratio - See `.env` in the current repo. - `PORT`: the port to run Xray on. - `FQDN`: the domain name of your server, used to generate SSL certificates. - - `USERS`: comma separated list of `USERCONF` allowed access to both Xray and resource downloads. Each `USERCONF` is of format `userid@flow`. `userid` is used as the credential for Xray. If `flow` is not specified it defaults to `xtls-rprx-direct`. For example, setting `USERS` to `user1@xtls-rprx-direct,user2` means two users with userid `user1` and `user2` and both with flow `xtls-rprx-direct`. + - `USERS`: comma separated list of `USERCONF` allowed access to both Xray and resource downloads. Each `USERCONF` is of format `userid@flow`. `userid` is used as the credential for Xray. If `flow` is not specified it defaults to `xtls-rprx-vision`. For example, setting `USERS` to `user1@xtls-rprx-direct,user2` means two users: `user1` with flow `xtls-rprx-direct` and `user2` with flow `xtls-rprx-vision`. - `LOGDIR`: the directory to store logs, currently required. 3. `docker compose up -d` 4. You can access the Xray service using an Xray client. You can access the per-user resource downloads by accessing `https://your-domain:your-port`, entering the `userid` in the textbox at the bottom of the page and clicking the `Download` button next to it. diff --git a/opt/init.py b/opt/init.py index 35ea859..7528b6e 100644 --- a/opt/init.py +++ b/opt/init.py @@ -32,7 +32,7 @@ def parse_user_flow(s : str) -> list[tuple[str,str]]: if (len(ele) > 1): flow = ele[1] else: - flow = "xtls-rprx-direct" + flow = "xtls-rprx-vision" users.append((username, flow)) return users