mirror of
https://github.com/Jackett/Jackett
synced 2025-01-18 21:50:33 +00:00
Fix HTTPS custom port handling
This commit is contained in:
parent
fc3a1e21d3
commit
72df2c1545
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ namespace Jackett.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
// default to 443 if the Host header doesn't contain the port (needed for reverse proxy setups)
|
// default to 443 if the Host header doesn't contain the port (needed for reverse proxy setups)
|
||||||
if (scheme == "https" && !Request.RequestUri.Host.Contains(":"))
|
if (scheme == "https" && !Request.RequestUri.Authority.Contains(":"))
|
||||||
port = 443;
|
port = 443;
|
||||||
|
|
||||||
var serverUrl = string.Format("{0}://{1}:{2}{3}", scheme, Request.RequestUri.Host, port, BasePath());
|
var serverUrl = string.Format("{0}://{1}:{2}{3}", scheme, Request.RequestUri.Host, port, BasePath());
|
||||||
|
|
Loading…
Reference in a new issue