From 33b946eab0d8c8640eb4097d44327d46e1b2de6b Mon Sep 17 00:00:00 2001 From: Fredy Date: Mon, 29 Jun 2020 01:11:39 +0200 Subject: [PATCH] Updated README.md --- README.md | 7 ++++++- src/GLua.cpp | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 36a706cb..52808a5a 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,18 @@ require("gwsockets") *NOTE:* If you want your websockets to use SSL but don't have a trusted certificate, you can set the second parameter to false. +* If you are running certain versions of Linux (e.g. CentOS) it might be necessary to specify a different path for the root certificates. This is only required if you want to use SSL and verify set verifyCertificates to true when creating a websocket. + ```LUA + GWSockets.addVerifyPath( "/etc/ssl/certs" ) + ``` + * Next add any cookies or headers you would like to send with the initial request (Optional) ```LUA WEBSOCKET:setHeader( key, value ) WEBSOCKET:setCookie( key, value ) ``` - + * Add some callbacks (Optional) ```LUA diff --git a/src/GLua.cpp b/src/GLua.cpp index c5263dea..a4828323 100644 --- a/src/GLua.cpp +++ b/src/GLua.cpp @@ -260,6 +260,7 @@ LUA_FUNCTION(addVerifyPath) { std::string errorMessage = "Failed setting SSL verify path: " + ec.message(); throwErrorNoHalt(LUA, errorMessage); } + return 0; } void pcall(ILuaBase* LUA, int numArgs)