Skip to content

Commit 810e079

Browse files
committed
Fix compilation error (ESP32)
passing 'const EthernetClient' as 'this' argument discards qualifiers [-fpermissive]
1 parent 4b29d8a commit 810e079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WebSocket.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void encodeSecKey(const char *key, char output[]);
293293
void generateMask(char output[]);
294294

295295
template <typename NetClient>
296-
inline IPAddress fetchRemoteIp(const NetClient &client) {
296+
inline IPAddress fetchRemoteIp(NetClient &&client) {
297297
if constexpr (has_remoteIP<NetClient>::value)
298298
return client.remoteIP();
299299
else

0 commit comments

Comments
 (0)