From 9f5ba0cf93b5fe19ecd7ad514591dbc446a3bb90 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 25 Apr 2023 21:43:29 +0330 Subject: [PATCH] [bug] vision-udp443 only for client + Translation Co-Authored-By: Alireza Ahmadi --- README.md | 13 +++++++++---- web/html/xui/inbounds.html | 2 +- web/service/xray.go | 3 +++ web/translation/translate.en_US.toml | 1 + web/translation/translate.fa_IR.toml | 1 + web/translation/translate.zh_Hans.toml | 1 + 6 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a48a8d72..2f48101f 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install. ## Install custom version -To install your desired version you can add the version to the end of install command. Example for ver `v1.2.8`: +To install your desired version you can add the version to the end of install command. Example for ver `v1.3.0`: ``` -bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v1.2.8 +bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh) v1.3.0 ``` # SSL @@ -33,6 +33,8 @@ apt-get install certbot -y certbot certonly --standalone --agree-tos --register-unsafely-without-email -d yourdomain.com certbot renew --dry-run ``` +or you can use x-ui menu then number '16' (Apply for an SSL Certificate) + # Default settings @@ -134,6 +136,7 @@ Reference syntax: - 0 \*/10 \* \* \* \* //Notify at the first second of each 10 minutes - @hourly // hourly notification - @daily // Daily notification (00:00 in the morning) +- @weekly // weekly notification - @every 8h // notify every 8 hours # Telegram Bot Features @@ -160,17 +163,19 @@ Reference syntax: | :----: | ---------------------------------- | ------------------------------------------- | | `GET` | `"/list"` | Get all inbounds | | `GET` | `"/get/:id"` | Get inbound with inbound.id | +| `GET` | `"/getClientTraffics/:email"` | Get Client Traffics with email | | `POST` | `"/add"` | Add inbound | | `POST` | `"/del/:id"` | Delete Inbound | | `POST` | `"/update/:id"` | Update Inbound | | `POST` | `"/clientIps/:email"` | Client Ip address | | `POST` | `"/clearClientIps/:email"` | Clear Client Ip address | -| `POST` | `"/addClient/"` | Add Client to inbound | +| `POST` | `"/addClient"` | Add Client to inbound | | `POST` | `"/:id/delClient/:clientId"` | Delete Client by UID/Password as clientId | -| `POST` | `"/updateClient/:index"` | Update Client | +| `POST` | `"/updateClient/:clientId"` | Update Client by UID/Password as clientId | | `POST` | `"/:id/resetClientTraffic/:email"` | Reset Client's Traffic | | `POST` | `"/resetAllTraffics"` | Reset traffics of all inbounds | | `POST` | `"/resetAllClientTraffics/:id"` | Reset traffics of all clients in an inbound | +| `POST` | `"/delDepletedClients/:id"` | Delete inbound depleted clients (-1: all) | # A Special Thanks To diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html index 275b1468..c4e44c45 100644 --- a/web/html/xui/inbounds.html +++ b/web/html/xui/inbounds.html @@ -68,7 +68,7 @@
{{ i18n "pages.inbounds.addInbound" }} - General Actions + {{ i18n "pages.inbounds.generalActions" }} diff --git a/web/service/xray.go b/web/service/xray.go index 6008a493..bcc886fe 100644 --- a/web/service/xray.go +++ b/web/service/xray.go @@ -118,6 +118,9 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) { if key != "email" && key != "id" && key != "password" && key != "flow" && key != "alterId" { delete(c, key) } + if c["flow"] == "xtls-rprx-vision-udp443" { + c["flow"] = "xtls-rprx-vision" + } } final_clients = append(final_clients, interface{}(c)) } diff --git a/web/translation/translate.en_US.toml b/web/translation/translate.en_US.toml index 0577b708..d20a0157 100644 --- a/web/translation/translate.en_US.toml +++ b/web/translation/translate.en_US.toml @@ -107,6 +107,7 @@ "expireDate" = "Expire date" "resetTraffic" = "Reset traffic" "addInbound" = "Add Inbound" +"generalActions" = "General Actions" "addTo" = "Create" "revise" = "Update" "modifyInbound" = "Modify InBound" diff --git a/web/translation/translate.fa_IR.toml b/web/translation/translate.fa_IR.toml index a00ced7e..a1341d35 100644 --- a/web/translation/translate.fa_IR.toml +++ b/web/translation/translate.fa_IR.toml @@ -107,6 +107,7 @@ "expireDate" = "تاریخ انقضا" "resetTraffic" = "ریست ترافیک" "addInbound" = "اضافه کردن سرویس" +"generalActions" = "عملیات کلی" "addTo" = "اضافه کردن" "revise" = "ویرایش" "modifyInbound" = "ویرایش سرویس" diff --git a/web/translation/translate.zh_Hans.toml b/web/translation/translate.zh_Hans.toml index 3e189324..0453c560 100644 --- a/web/translation/translate.zh_Hans.toml +++ b/web/translation/translate.zh_Hans.toml @@ -107,6 +107,7 @@ "expireDate" = "到期时间" "resetTraffic" = "重置流量" "addInbound" = "添加入" +"generalActions" = "通用操作" "addTo" = "添加" "revise" = "修改" "modifyInbound" = "修改入站"