mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 23:07:17 +00:00
Fix telegram DNS regression
This commit is contained in:
parent
626fb783ea
commit
9ee8461f3d
@ -107,13 +107,9 @@ String TelegramConnectToTelegram(const String &command) {
|
||||
|
||||
String host = F("api.telegram.org");
|
||||
String response = "";
|
||||
IPAddress telegram_host_ip;
|
||||
if (!WifiHostByName(host.c_str(), telegram_host_ip)) {
|
||||
return response;
|
||||
}
|
||||
uint32_t tls_connect_time = millis();
|
||||
// if (telegramClient->connect(host.c_str(), 443)) {
|
||||
if (telegramClient->connect(telegram_host_ip, 443)) {
|
||||
if (telegramClient->connect(host.c_str(), 443)) {
|
||||
|
||||
// AddLog(LOG_LEVEL_DEBUG, PSTR("TGM: Connected in %d ms, max ThunkStack used %d"), millis() - tls_connect_time, telegramClient->getMaxThunkStackUse());
|
||||
|
||||
// telegramClient->println("GET /"+command); // Fails after 20210621
|
||||
|
Loading…
x
Reference in New Issue
Block a user