Skip to content

Commit 9533fc2

Browse files
authored
Merge pull request Aircoookie#4 from misery/s2
Cherry-pick 5613e66 to support arduino-esp32 2.0.2
2 parents 3a0fa9d + beb19ed commit 9533fc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AsyncWebSocket.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ void AsyncWebSocketClient::binary(AsyncWebSocketMessageBuffer * buffer)
831831

832832
IPAddress AsyncWebSocketClient::remoteIP() {
833833
if(!_client) {
834-
return IPAddress(0U);
834+
return IPAddress((uint32_t)0);
835835
}
836836
return _client->remoteIP();
837837
}
@@ -1247,8 +1247,8 @@ AsyncWebSocketResponse::AsyncWebSocketResponse(const String& key, AsyncWebSocket
12471247
#ifdef ESP8266
12481248
sha1(key + WS_STR_UUID, hash);
12491249
#else
1250-
(String&)key += WS_STR_UUID;
1251-
mbedtls_sha1_context ctx;
1250+
(String&)key += WS_STR_UUID;
1251+
mbedtls_sha1_context ctx;
12521252
mbedtls_sha1_init(&ctx);
12531253
mbedtls_sha1_starts_ret(&ctx);
12541254
mbedtls_sha1_update_ret(&ctx, (const unsigned char*)key.c_str(), key.length());

0 commit comments

Comments
 (0)