Skip to content

Commit 6d47a9f

Browse files
committed
Add metrics to TUI Logs menu, warn on domain change about stale links
1 parent 55bd518 commit 6d47a9f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

mtproxymax.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6438,6 +6438,7 @@ cli_main() {
64386438
PROXY_DOMAIN="$new_domain"
64396439
save_settings
64406440
log_success "Domain changed to ${new_domain}"
6441+
log_warn "Proxy links contain the old domain — share new links with your users"
64416442
if is_proxy_running; then
64426443
load_secrets
64436444
restart_proxy_container
@@ -7461,6 +7462,7 @@ show_settings_menu() {
74617462
if $_domain_changed; then
74627463
save_settings
74637464
log_success "Domain set to ${PROXY_DOMAIN}"
7465+
log_warn "Proxy links contain the old domain — share new links with your users"
74647466
if is_proxy_running; then
74657467
echo -en " ${DIM}Restart proxy now? [Y/n]:${NC} "
74667468
local r; read -r r
@@ -7646,6 +7648,8 @@ show_traffic_menu() {
76467648
echo ""
76477649
echo -e " ${DIM}[1]${NC} Stream live logs"
76487650
echo -e " ${DIM}[2]${NC} Connection log"
7651+
echo -e " ${DIM}[3]${NC} Engine metrics"
7652+
echo -e " ${DIM}[4]${NC} Engine metrics (live)"
76497653
echo -e " ${DIM}[0]${NC} Back"
76507654

76517655
local choice
@@ -7661,6 +7665,17 @@ show_traffic_menu() {
76617665
fi
76627666
press_any_key
76637667
;;
7668+
3) show_metrics; press_any_key ;;
7669+
4)
7670+
(
7671+
while true; do
7672+
tput clear 2>/dev/null || printf '\033[2J\033[H'
7673+
show_metrics
7674+
echo -e " ${DIM}[live — refreshing every 5s, Ctrl+C to stop]${NC}"
7675+
sleep 5
7676+
done
7677+
)
7678+
;;
76647679
esac
76657680
}
76667681

0 commit comments

Comments
 (0)