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