Skip to content

Commit fa00511

Browse files
committed
ditto
1 parent 1efc1de commit fa00511

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libraries/ESP8266HTTPClient/examples/BasicHttpsClient/BasicHttpsClient.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void loop() {
4646
client->setFingerprint(fingerprint_sni_cloudflaressl_com);
4747

4848
// date needs to be setup
49+
configTime("UTC", "pool.ntp.org");
4950
time_t now;
5051
while (time(&now) < 24 * 3600) {
5152
Serial.println("waiting for NTP time to be set...");

libraries/ESP8266WiFi/src/WiFiClientSecureBearSSL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class WiFiClientSecure : public WiFiClient {
266266
public:
267267

268268
WiFiClientSecure():_ctx(new WiFiClientSecureCtx(this)) { _owned = _ctx.get(); }
269-
WiFiClientSecure(const WiFiClientSecure &rhs): _ctx(rhs._ctx), _userNegociationTimeout(rhs._userNegociationTimeout) {
269+
WiFiClientSecure(const WiFiClientSecure &rhs): WiFiClient(), _ctx(rhs._ctx), _userNegociationTimeout(rhs._userNegociationTimeout) {
270270
if (_ctx) { _owned = _ctx.get(); _ctx->setStream(this); }
271271
}
272272
~WiFiClientSecure() override { _ctx = nullptr; }

0 commit comments

Comments
 (0)