From 9ee8461f3dd9ea0ce1ceef698933ff7493f1fbe0 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 20 Jun 2022 12:50:29 +0200 Subject: [PATCH] Fix telegram DNS regression --- tasmota/tasmota_xdrv_driver/xdrv_40_telegram.ino | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_40_telegram.ino b/tasmota/tasmota_xdrv_driver/xdrv_40_telegram.ino index ab40d9f59..a988fff8f 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_40_telegram.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_40_telegram.ino @@ -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