Использован socks5h для Telegram bridge

Этот коммит содержится в:
Виктор
2026-05-08 18:34:07 +09:00
родитель 8632c577a8
Коммит 4b46aabc82
+3 -1
Просмотреть файл
@@ -33,7 +33,9 @@ function buildProxyAgent(proxy) {
? `${encodeURIComponent(proxy.username)}:${encodeURIComponent(proxy.password || '')}@` ? `${encodeURIComponent(proxy.username)}:${encodeURIComponent(proxy.password || '')}@`
: ''; : '';
return new SocksProxyAgent(`socks5://${auth}${proxy.host}:${proxy.port}`); // socks5h forces DNS resolution through the proxy. This is required when Telegram
// is not reachable/resolvable directly from the VPS network.
return new SocksProxyAgent(`socks5h://${auth}${proxy.host}:${proxy.port}`);
} }
function buildTelegramOptions(settings) { function buildTelegramOptions(settings) {