Обновить mtproto.sh

This commit is contained in:
2026-03-06 18:17:25 +03:00
parent 873a1202ee
commit 5bd891c2e7

View File

@@ -45,6 +45,14 @@ read -p "Enter MTProto port (default 443): " PORT
# Если переменная пустая — подставляем значение по умолчанию
PORT=${PORT:-443}
# -----------------------------------------------------------------------------
# Если установлен UFW — открываем порт
# -----------------------------------------------------------------------------
if command -v ufw >/dev/null 2>&1; then
echo "Opening port $PORT in UFW firewall..."
ufw allow "$PORT"/tcp comment "MTPROTO-TCP" || true
ufw allow "$PORT"/udp comment "MTPROTO-UDP" || true
fi
# -----------------------------------------------------------------------------
# Запрос TAG.