mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 14:38:47 +00:00
parent
f9c2f40ad1
commit
b5bb9c0272
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export default async function rutorrentProxyHandler(req, res) {
|
||||||
|
|
||||||
const rutorrent = new RuTorrent({
|
const rutorrent = new RuTorrent({
|
||||||
host: constructedUrl.hostname,
|
host: constructedUrl.hostname,
|
||||||
port: constructedUrl.port,
|
port: constructedUrl.port !== '' ? constructedUrl.port : (constructedUrl.protocol === "https:" ? 443 : 80),
|
||||||
path: constructedUrl.pathname,
|
path: constructedUrl.pathname,
|
||||||
ssl: constructedUrl.protocol === "https:",
|
ssl: constructedUrl.protocol === "https:",
|
||||||
username: widget.username,
|
username: widget.username,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue