ESP8266 Fix TLS SNI which would prevent AWS IoT connection (#17936)

This commit is contained in:
s-hadinger
2023-02-12 21:33:13 +01:00
committed by GitHub
parent 3ea69f7d7b
commit bc7ef89b3c
2 changed files with 2 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file.
### Changed
### Fixed
- ESP8266 Fix TLS SNI which would prevent AWS IoT connection
### Removed

View File

@@ -309,7 +309,7 @@ int WiFiClientSecure_light::connect(IPAddress ip, uint16_t port) {
setLastError(ERR_TCP_CONNECT);
return 0;
}
return _connectSSL(nullptr);
return _connectSSL(_domain.isEmpty() ? nullptr : _domain.c_str());
}
#endif