From 48cc0f4289ccc99507c138530ab0171fa4856fd8 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Fri, 16 Feb 2018 08:33:19 -0500 Subject: [PATCH] use write --- libi2pd_client/WebSocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }