Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/homepage/commit/c57d980558794f3e708466d99d14e302094f4c66 You should set ROOT_URL correctly, otherwise the web may not work correctly.

fix rutorrent lint

pull/543/head
Michael Shamoon 2 years ago
parent b5bb9c0272
commit c57d980558

@ -11,9 +11,14 @@ export default async function rutorrentProxyHandler(req, res) {
if (widget) {
const constructedUrl = new URL(widget.url);
let rtPort = constructedUrl.port;
if (rtPort === '') {
rtPort = constructedUrl.protocol === "https:" ? 443 : 80;
}
const rutorrent = new RuTorrent({
host: constructedUrl.hostname,
port: constructedUrl.port !== '' ? constructedUrl.port : (constructedUrl.protocol === "https:" ? 443 : 80),
port: rtPort,
path: constructedUrl.pathname,
ssl: constructedUrl.protocol === "https:",
username: widget.username,

Loading…
Cancel
Save