diff options
| author | xujie86 <167618598+xujie86@users.noreply.github.com> | 2025-07-22 13:53:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-22 13:53:12 +0300 |
| commit | 75416eebd794e6fc4bd5dd25730be5c2f51e50f0 (patch) | |
| tree | 2ae1abe3218ecf2530409d5a58dd6b53b3e22e70 | |
| parent | 87042d77bab3bb22a8d1a08cc669c218c6c8f411 (diff) | |
Increase the number of characters for webBasePath (#3239)
| -rw-r--r-- | install.sh | 2 | ||||
| -rw-r--r-- | x-ui.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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}" @@ -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 |
