Fix typo + secure test

This commit is contained in:
John Livingston
2023-05-25 18:37:31 +02:00
parent 8132e7f51a
commit a6e361d1dd
2 changed files with 3 additions and 2 deletions

View File

@ -366,7 +366,7 @@ end
local function keepalive(event)
local session = event.session;
if session.open_stream == session_open_stream then
local log = session.log or log
local log = session.log or log;
log("debug", "Sending a keepalive on outgoing websocket s2s");
return session.conn:write(build_frame({ opcode = 0x9, FIN = true }));
end
@ -573,7 +573,7 @@ function route_to_new_session(event)
ex["headers"] = ws_properties.extra_headers or {};
ex["protocol"] = "xmpp";
if ws_url:find('^wss') ~= nil then
if ws_url:find('^wss:') ~= nil then
log("debug", "Outgoing WS S2S Session is considered secure, we are using wss");
session.secure = true;
else