fix: use alpn on clientssl as well

This commit is contained in:
2026-05-12 18:55:44 -03:00
parent fe9989b3c1
commit 8a343b3e3d
+3
View File
@@ -282,7 +282,10 @@ void TinyMITMProxy::handleClient(SOCKET clientSocket)
wolfSSL_set_fd(remoteSSL.get(), (int)remoteGuard);
char alpnList[] = "\x08http/1.1";
wolfSSL_UseALPN(remoteSSL.get(), alpnList, sizeof(alpnList) - 1, 0);
wolfSSL_UseALPN(clientSSL.get(), alpnList, sizeof(alpnList) - 1, 0);
wolfSSL_UseSNI(remoteSSL.get(), WOLFSSL_SNI_HOST_NAME, host.c_str(), (unsigned short)host.size());
setNonBlocking(clientGuard);