yakuza0 2.20.10 → 2.20.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.20.10",
3
+ "version": "2.20.11",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -244,6 +244,10 @@ exports.default = function () {
244
244
  }
245
245
  });
246
246
 
247
+ if (_config2.default.security.isStupid) {
248
+ proxyReq.setHeader(_def.variable.adjoinIpHeader, (0, _server.getClientIP)(req, { stupid: true }));
249
+ }
250
+
247
251
  // const keys = Object.keys(yConf.proxyServer.proxy).join('|')
248
252
  // if (req.crossParams.originUrl.match(new RegExp(`^\/(${keys})\/`))) {
249
253
  // _.forEach(yConf.proxyServer.proxyHeaders, dt => {