littleshop/TeleBot/TeleBot
SysAdmin fa5e5fb9fa Fix: Implement selective TOR routing for internal vs external API calls
**Issue**: Order creation failed because TOR proxy was being used for internal
Docker network API calls to littleshop-admin, causing DNS resolution failures.

**Root Cause**:
- All HTTP clients (BotManager, ActivityTracker, ProductCarousel) used
  Socks5HttpHandler.Create() which checked Privacy:EnableTor globally
- TOR gateway can only proxy external traffic (to Telegram API)
- Internal Docker network calls to littleshop-admin failed through TOR

**Solution**:
- Updated BotManagerService to use Socks5HttpHandler.CreateDirect()
- Updated BotActivityTracker to use Socks5HttpHandler.CreateDirect()
- Updated ProductCarouselService to use Socks5HttpHandler.CreateDirect()
- TelegramBotService continues using TOR for external Telegram API
- LittleShop.Client respects LittleShop:UseTor = false setting

**Architecture**:
 External calls (Telegram API) → TOR for privacy
 Internal calls (LittleShop API) → Direct Docker network connection

**Testing**:
- Bot authenticated successfully with LittleShop API (200 OK)
- Telegram Bot API using TOR proxy (socks5://tor-gateway:9050)
- Container: 45eab050eeeca479680966b45742cf140cf7df0ed8e8ab5dc8c9e3e17739c88a

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-03 13:09:04 +01:00
..
Controllers Configure BTCPay with external nodes via Tor 2025-09-19 12:14:39 +01:00
Handlers Fix: Prevent 'message not modified' error when browsing products 2025-10-03 12:59:54 +01:00
Http Fix: Update all TOR proxy configurations to support TorSocksHost 2025-10-03 12:48:07 +01:00
Models Implement product variant selection in TeleBot 2025-09-24 23:09:33 +01:00
Services Fix: Update all TOR proxy configurations to support TorSocksHost 2025-10-03 12:48:07 +01:00
UI Add variant collections system and enhance ProductVariant with weight/stock tracking 2025-09-28 17:03:09 +01:00
appsettings.json CI/CD: Add GitLab CI/CD pipeline for Hostinger deployment 2025-10-01 13:10:48 +01:00
BotConfig.cs Configure BTCPay with external nodes via Tor 2025-09-19 12:14:39 +01:00
BotScript.cs Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
CAROUSEL_FEATURE.md Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
Dockerfile Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
Program.cs Fix: Implement selective TOR routing for internal vs external API calls 2025-10-03 13:09:04 +01:00
TeleBot.csproj Update TeleBot configuration and add versioning 2025-09-27 09:50:12 +01:00
TelegramBot.cs Initial commit of LittleShop project (excluding large archives) 2025-09-17 15:07:38 +01:00
TelegramBotService.cs Fix: Update all TOR proxy configurations to support TorSocksHost 2025-10-03 12:48:07 +01:00
test-wizard-result.html Add customer communication system 2025-08-27 18:02:39 +01:00
TestCarousel.cs Configure BTCPay with external nodes via Tor 2025-09-19 12:14:39 +01:00
TOR-DEPLOYMENT-GUIDE.md CI/CD: Add GitLab CI/CD pipeline for Hostinger deployment 2025-10-01 13:10:48 +01:00
wizard-page.html Add customer communication system 2025-08-27 18:02:39 +01:00
wizard-result.html Add customer communication system 2025-08-27 18:02:39 +01:00
wizard-test.txt Add customer communication system 2025-08-27 18:02:39 +01:00