diff --git a/libi2pd_client/WebSocks.cpp b/libi2pd_client/WebSocks.cpp index ce34a597..ee64001d 100644 --- a/libi2pd_client/WebSocks.cpp +++ b/libi2pd_client/WebSocks.cpp @@ -212,7 +212,7 @@ namespace client ss << ".b32.i2p:"; ss << std::to_string(fromPort); ss << "\n"; - ss << std::string((char *)buf, len); + ss.write((char *)buf, len); conn->send(ss.str()); } }