File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2129,6 +2129,7 @@ secret_set_limits() {
21292129 if [ -n " $max_conns " ]; then
21302130 [[ " $max_conns " =~ ^[0-9]+$ ]] || { log_error " Max connections must be a number" ; return 1; }
21312131 [ " $max_conns " -gt 1000000 ] && { log_error " Max connections cannot exceed 1000000" ; return 1; }
2132+ [ " $max_conns " -gt 0 ] && [ " $max_conns " -lt 5 ] && log_warn " Telegram uses ~3 connections per device; values below 5 may break connectivity"
21322133 SECRETS_MAX_CONNS[$idx ]=" $max_conns "
21332134 fi
21342135 if [ -n " $max_ips " ]; then
@@ -5372,7 +5373,7 @@ run_installer() {
53725373 fi
53735374 fi
53745375
5375- echo -en " ${DIM} Enter memory limit [unlimited]:${NC} "
5376+ echo -en " ${DIM} Enter memory limit, e.g. 256m, 1g [unlimited]:${NC} "
53765377 local mem_input
53775378 read -r mem_input
53785379 if [ -n " $mem_input " ]; then
@@ -7475,7 +7476,7 @@ show_settings_menu() {
74757476 log_error " Invalid CPU value (must be a number >= 0.1, e.g. 1, 2, 0.5)"
74767477 fi
74777478 fi
7478- echo -en " ${BOLD} Memory [${PROXY_MEMORY:- unlimited} ]:${NC} "
7479+ echo -en " ${BOLD} Memory, e.g. 256m, 1g [${PROXY_MEMORY:- unlimited} ]:${NC} "
74797480 local m; read -r m
74807481 if [ -n " $m " ]; then
74817482 if [[ " $m " =~ ^[0-9]+[bBkKmMgG]? $ ]]; then
You can’t perform that action at this time.
0 commit comments