@rpcbase/server 0.281.0 → 0.282.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,8 @@ const block_invalid_hosts = (app) => {
11
11
  if (!is_production) return
12
12
 
13
13
  app.use((req, res, next) => {
14
- if (req.hostname !== APP_DOMAIN) {
14
+ // dockerip.host is needed for platform/reverse-proxy
15
+ if (![APP_DOMAIN, "dockerip.host"].includes(req.hostname)) {
15
16
  console.log("request from invalid hostname", {
16
17
  hostname: req.hostname,
17
18
  url: req.url
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.281.0",
3
+ "version": "0.282.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {