From 1f6f1956734ba65596c9548c719973421db838ef Mon Sep 17 00:00:00 2001 From: xujie86 <167618598+xujie86@users.noreply.github.com> Date: Tue, 22 Jul 2025 18:53:12 +0800 Subject: [PATCH] Increase the number of characters for webBasePath (#3239) --- install.sh | 2 +- x-ui.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 30a0f688..85b34c3d 100644 --- a/install.sh +++ b/install.sh @@ -115,7 +115,7 @@ config_after_install() { echo -e "${green}Access URL: http://${server_ip}:${config_port}/${config_webBasePath}${plain}" echo -e "###############################################" else - local config_webBasePath=$(gen_random_string 15) + local config_webBasePath=$(gen_random_string 18) echo -e "${yellow}WebBasePath is missing or too short. Generating a new one...${plain}" /usr/local/x-ui/x-ui setting -webBasePath "${config_webBasePath}" echo -e "${green}New WebBasePath: ${config_webBasePath}${plain}" diff --git a/x-ui.sh b/x-ui.sh index 1ce85f91..97dc9102 100644 --- a/x-ui.sh +++ b/x-ui.sh @@ -214,7 +214,7 @@ reset_webbasepath() { return fi - config_webBasePath=$(gen_random_string 10) + config_webBasePath=$(gen_random_string 18) # Apply the new web base path setting /usr/local/x-ui/x-ui setting -webBasePath "${config_webBasePath}" >/dev/null 2>&1