mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-31 12:55:50 +01:00
Fixed: Port set for downloads even when not used Request
This commit is contained in:
parent
838e4e582a
commit
1c1715178c
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ public static string GetRemoteIP(this HttpRequest request)
|
|||
public static string GetServerUrl(this HttpRequest request)
|
||||
{
|
||||
var scheme = request.Scheme;
|
||||
var port = request.HttpContext.Connection.LocalPort;
|
||||
var port = request.HttpContext.Request.Host.Port;
|
||||
|
||||
// Check for protocol headers added by reverse proxys
|
||||
// X-Forwarded-Proto: A de facto standard for identifying the originating protocol of an HTTP request
|
||||
|
|
|
|||
Loading…
Reference in a new issue