diff options
| author | Bobby <[email protected]> | 2022-03-15 15:35:08 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-03-15 15:35:08 -0400 |
| commit | 92932847a646b31e8bb76fd5beb6c4a33a0fa8d4 (patch) | |
| tree | 8b8f9d00c5462adeebc8f066721a88de9db5d745 /server.js | |
| parent | 30f95f498049058fae3410664f7f73f71600ad58 (diff) | |
| download | luciferreeves.github.io-92932847a646b31e8bb76fd5beb6c4a33a0fa8d4.tar.xz luciferreeves.github.io-92932847a646b31e8bb76fd5beb6c4a33a0fa8d4.zip | |
Exclude server IP from HTTPS
Diffstat (limited to 'server.js')
| -rw-r--r-- | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ const app = express(); app.use(function (req, res, next) { if ( req.get("X-Forwarded-Proto") === "http" && - !["localhost", "127.0.0.1", "109.105.216.138"].includes( + !["localhost", "127.0.0.1"].includes( req.get("X-Forwarded-Host")?.split(":")[0] ?? "" ) ) { |
