6.4.0-alpha.2 version.

This commit is contained in:
John Livingston
2023-05-24 17:45:14 +02:00
parent a8150a26eb
commit c52d231435
4 changed files with 13 additions and 10 deletions

View File

@ -10,12 +10,13 @@ function discover_websocket_s2s(event)
local to_host = event.to_host;
module:log("debug", "Searching websocket s2s for remote host %s", to_host);
local f_s2s = io.open(path.join(server_infos_dir, to_host, 's2s'), "r");
if f_s2s ~= nil then
io.close(f_s2s);
module:log("debug", "Remote host is a known Peertube %s that has s2s activated, we will let legacy s2s module handle the connection", to_host);
return;
end
-- FIXME: this was commented for the 6.4.0-alpha2, to test ws s2s. Revert before releasing.
-- local f_s2s = io.open(path.join(server_infos_dir, to_host, 's2s'), "r");
-- if f_s2s ~= nil then
-- io.close(f_s2s);
-- module:log("debug", "Remote host is a known Peertube %s that has s2s activated, we will let legacy s2s module handle the connection", to_host);
-- return;
-- end
local f_ws_proxy = io.open(path.join(server_infos_dir, to_host, 'ws-s2s'), "r");
if f_ws_proxy == nil then