Files
homeclaw/scripts/fix-telegram-dns.sh
T
2026-05-05 17:46:17 +09:00

7 lines
401 B
Bash

#!/bin/bash
# Fix Telegram API connectivity issue
# Node.js resolves api.telegram.org to 149.154.166.110 which is blocked
# 149.154.167.220 works
echo "Adding api.telegram.org to /etc/hosts..."
echo "149.154.167.220 api.telegram.org" | sudo tee -a /etc/hosts
echo "Done. Test with: node -e \"fetch('https://api.telegram.org/').then(r=>console.log('OK:',r.status)).catch(e=>console.error(e.message))\""