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:
-rw-r--r--install.sh2
-rw-r--r--x-ui.sh13
2 files changed, 11 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index 45165515..027ef127 100644
--- a/install.sh
+++ b/install.sh
@@ -132,7 +132,7 @@ config_after_install() {
echo -e "${yellow}Your password will be: ${config_password}${plain}"
read -p "Please set up the panel port: " config_port
echo -e "${yellow}Your panel port is: ${config_port}${plain}"
- read -p "Please set up the web base path: " config_webBasePath
+ read -p "Please set up the web base path (ip:port/webbasepath/): " config_webBasePath
echo -e "${yellow}Your web base path is: ${config_webBasePath}${plain}"
echo -e "${yellow}Initializing, please wait...${plain}"
/usr/local/x-ui/x-ui setting -username ${config_account} -password ${config_password}
diff --git a/x-ui.sh b/x-ui.sh
index 56761782..01d16099 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -1126,7 +1126,14 @@ install_iplimit() {
# Check the OS and install necessary packages
case "${release}" in
- ubuntu | debian | armbian)
+ ubuntu)
+ if [[ "${os_version}" -ge 24 ]]; then
+ apt update && apt install python3-pip -y
+ python3 -m pip install pyasynchat --break-system-packages
+ fi
+ apt update && apt install fail2ban -y
+ ;;
+ debian | armbian)
apt update && apt install fail2ban -y
;;
centos | almalinux | rocky | oracle)
@@ -1137,8 +1144,8 @@ install_iplimit() {
dnf -y update && dnf -y install fail2ban
;;
arch | manjaro | parch)
- pacman -Syu --noconfirm fail2ban
- ;;
+ pacman -Syu --noconfirm fail2ban
+ ;;
*)
echo -e "${red}Unsupported operating system. Please check the script and install the necessary packages manually.${plain}\n"
exit 1