Fix typo + secure test

This commit is contained in:
John Livingston 2023-05-25 18:37:31 +02:00
parent 8132e7f51a
commit a6e361d1dd
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ TODO?: always generate self-signed certificates. Could be used for outgoing s2s?
TODO: check in the diagnostic tool that Prosody is >=0.12
TODO?: allow directs2s on one side and websocket on the other? (currently disallowed by compatibleRemoteAuthenticatedConnectionEnabled)
TODO: alpha.4 version force Websocket S2S when available, even if s2s is possible. Revert this before releasing.
TODO: for directS2S, needs a SRV records for the main host if port is not standard.. Must document.
### Minor changes and fixes

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