File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Jellyfin.HardwareVisualizer/Server Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 20
20
using Octokit . Internal ;
21
21
using ProductHeaderValue = Octokit . ProductHeaderValue ;
22
22
using System . Net ;
23
+ using Microsoft . AspNetCore . HttpOverrides ;
23
24
24
25
namespace Jellyfin . HardwareVisualizer . Server ;
25
26
@@ -79,13 +80,12 @@ string GetConnectionString()
79
80
var hostingOptions = builder . Configuration . Get < HostingOptions > ( ) ;
80
81
81
82
options . ForwardLimit = 2 ;
83
+ options . ForwardedHeaders = ForwardedHeaders . XForwardedFor ;
82
84
foreach ( var proxy in hostingOptions . KnownProxies ?? [ ] )
83
85
{
84
86
options . KnownProxies . Add ( IPAddress . Parse ( proxy ) ) ;
85
87
}
86
-
87
- // options.KnownProxies.Add(IPAddress.Parse("172.18.0.2"));
88
- // options.KnownProxies.Add(IPAddress.Parse("172.19.0.9"));
88
+
89
89
options . ForwardedForHeaderName = "X-Forwarded-For" ;
90
90
} ) ;
91
91
You can’t perform that action at this time.
0 commit comments