feat: add port forwarding tip to MTProto initial setup

This commit is contained in:
SamNet-dev
2026-02-12 15:16:21 -06:00
parent e07f400ed6
commit b6e729cced

View File

@@ -2037,6 +2037,9 @@ Domain: ${MTPROTO_DOMAIN}
1)
echo ""
local new_port new_domain
echo -e " ${DIM}Tip: The port you choose must be open on your firewall/security group.${NC}"
echo -e " ${DIM}If running at home, you'll need to port-forward it on your router.${NC}"
echo ""
read -p " Port to listen on [443]: " new_port < /dev/tty || true
new_port="${new_port:-443}"
if ! echo "$new_port" | grep -qE '^[0-9]+$' || [ "$new_port" -lt 1 ] || [ "$new_port" -gt 65535 ] 2>/dev/null; then