diff --git a/src/proxy/tinymitm/proxy.cpp b/src/proxy/tinymitm/proxy.cpp index 3857f30..6c8b88c 100644 --- a/src/proxy/tinymitm/proxy.cpp +++ b/src/proxy/tinymitm/proxy.cpp @@ -345,8 +345,8 @@ void TinyMITMProxy::handleClient(SOCKET clientSocket) wolfSSL_UseSNI(remoteSSL.get(), WOLFSSL_SNI_HOST_NAME, host.c_str(), (unsigned short)host.size()); - setNonBlocking(clientGuard); - setNonBlocking(remoteGuard); + setNonBlocking(clientGuard, true); + setNonBlocking(remoteGuard, true); if (!doHandshake(clientSSL.get(), clientGuard, true)) return; if (!doHandshake(remoteSSL.get(), remoteGuard, false)) return;