From 1a855d56f03466d0aa2545825960ca2572f6f18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Wed, 22 Oct 2025 10:21:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BF=D0=BD=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B8=D0=BC=D1=8F=20(x-ui:multi-server-support)=20?= =?UTF-8?q?=D0=B8=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D1=8E=20(3.0.1)=20?= =?UTF-8?q?=D0=B2=20bash=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8?= =?UTF-8?q?=D0=B8=20x-ui=20v?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/name | 2 +- config/version | 2 +- version | 1 - x-ui.sh | 8 ++++++++ 4 files changed, 10 insertions(+), 3 deletions(-) delete mode 100644 version diff --git a/config/name b/config/name index 491114af..94dd87f9 100644 --- a/config/name +++ b/config/name @@ -1 +1 @@ -x-ui \ No newline at end of file +x-ui:multi-server-support \ No newline at end of file diff --git a/config/version b/config/version index 0409c163..13d683cc 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -2.8.4 \ No newline at end of file +3.0.1 \ No newline at end of file diff --git a/version b/version deleted file mode 100644 index 6da28dde..00000000 --- a/version +++ /dev/null @@ -1 +0,0 @@ -0.1.1 \ No newline at end of file diff --git a/x-ui.sh b/x-ui.sh index 2d042b0b..0d74635f 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -1870,6 +1870,11 @@ SSH_port_forwarding() { esac } +show_version() { + echo -e "x-ui Version: ${/usr/local/x-ui/x-ui -v}" + before_show_menu +} + show_usage() { echo -e "┌───────────────────────────────────────────────────────┐ │ ${blue}x-ui control menu usages (subcommands):${plain} │ @@ -2059,6 +2064,9 @@ if [[ $# > 0 ]]; then "uninstall") check_install 0 && uninstall 0 ;; + "v") + check_install 0 && show_version 0 + ;; *) show_usage ;; esac else