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