Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-04-25 21:13:29 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-04-25 21:13:29 +0300
commit9f5ba0cf93b5fe19ecd7ad514591dbc446a3bb90 (patch)
tree6792c41117a181b1f904219c02cf9ebd1074d6d1
parentb5c553950111a7b5634fd46bdae6e5985ed498df (diff)
[bug] vision-udp443 only for client + Translation
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
-rw-r--r--README.md13
-rw-r--r--web/html/xui/inbounds.html2
-rw-r--r--web/service/xray.go3
-rw-r--r--web/translation/translate.en_US.toml1
-rw-r--r--web/translation/translate.fa_IR.toml1
-rw-r--r--web/translation/translate.zh_Hans.toml1
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 @@
<div slot="title">
<a-button type="primary" icon="plus" @click="openAddInbound">{{ i18n "pages.inbounds.addInbound" }}</a-button>
<a-dropdown :trigger="['click']">
- <a-button type="primary" icon="menu">General Actions</a-button>
+ <a-button type="primary" icon="menu">{{ i18n "pages.inbounds.generalActions" }}</a-button>
<a-menu slot="overlay" @click="a => generalActions(a)" :theme="siderDrawer.theme">
<a-menu-item key="export">
<a-icon type="export"></a-icon>
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" = "修改入站"