diff --git a/ixwebsocket/IXWebSocketProxyServer.cpp b/ixwebsocket/IXWebSocketProxyServer.cpp index 4b78c63b..4df5a115 100644 --- a/ixwebsocket/IXWebSocketProxyServer.cpp +++ b/ixwebsocket/IXWebSocketProxyServer.cpp @@ -57,7 +57,7 @@ namespace ix server.setOnConnectionCallback( [remoteUrl, remoteUrlsMapping](std::weak_ptr webSocket, std::shared_ptr connectionState) { - auto state = std::dynamic_pointer_cast(connectionState); + auto state = std::static_pointer_cast(connectionState); auto remoteIp = connectionState->getRemoteIp(); // Server connection