mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-05 01:36:19 +00:00
Update x-ui.sh
This commit is contained in:
parent
d95dc7542c
commit
033e3391ba
1 changed files with 8 additions and 2 deletions
6
x-ui.sh
6
x-ui.sh
|
@ -520,6 +520,11 @@ run_speedtest() {
|
||||||
elif command -v apt &> /dev/null; then
|
elif command -v apt &> /dev/null; then
|
||||||
pkg_manager="apt"
|
pkg_manager="apt"
|
||||||
speedtest_install_script="https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh"
|
speedtest_install_script="https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh"
|
||||||
|
elif command -v pacman &> /dev/null; then
|
||||||
|
pkg_manager="pacman"
|
||||||
|
if ! command -v speedtest-cli &> /dev/null; then
|
||||||
|
sudo pacman --noconfirm -S speedtest-cli
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $pkg_manager ]]; then
|
if [[ -z $pkg_manager ]]; then
|
||||||
|
@ -535,6 +540,7 @@ run_speedtest() {
|
||||||
speedtest
|
speedtest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
create_iplimit_jails() {
|
create_iplimit_jails() {
|
||||||
# Use default bantime if not passed => 5 minutes
|
# Use default bantime if not passed => 5 minutes
|
||||||
local bantime="${1:-5}"
|
local bantime="${1:-5}"
|
||||||
|
|
Loading…
Reference in a new issue