forked from svrjs/svrjs
Added missing semicolon
This commit is contained in:
parent
b1ab6e3e4a
commit
61b0d6ad9c
4 changed files with 4 additions and 3 deletions
1
404.html
Normal file
1
404.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{path}
|
|
@ -3,7 +3,7 @@
|
||||||
"port": 5555,
|
"port": 5555,
|
||||||
"pubport": 80,
|
"pubport": 80,
|
||||||
"page404": "404.html",
|
"page404": "404.html",
|
||||||
"timestamp": 1693743065822,
|
"timestamp": 1693744950022,
|
||||||
"blacklist": [],
|
"blacklist": [],
|
||||||
"nonStandardCodes": [],
|
"nonStandardCodes": [],
|
||||||
"enableCompression": true,
|
"enableCompression": true,
|
||||||
|
|
2
svr.js
2
svr.js
|
@ -2849,7 +2849,7 @@ if (!cluster.isPrimary) {
|
||||||
var preparedReqIPvalid = net.isIP(preparedReqIP);
|
var preparedReqIPvalid = net.isIP(preparedReqIP);
|
||||||
if(preparedReqIPvalid) {
|
if(preparedReqIPvalid) {
|
||||||
if (preparedReqIPvalid == 4 && req.socket.remoteAddress && req.socket.remoteAddress.indexOf(":") > -1) preparedReqIP = "::ffff:" + preparedReqIP;
|
if (preparedReqIPvalid == 4 && req.socket.remoteAddress && req.socket.remoteAddress.indexOf(":") > -1) preparedReqIP = "::ffff:" + preparedReqIP;
|
||||||
reqip = preparedReqIP
|
reqip = preparedReqIP;
|
||||||
reqport = null;
|
reqport = null;
|
||||||
try {
|
try {
|
||||||
oldport = req.socket.remotePort;
|
oldport = req.socket.remotePort;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
55
|
56
|
Reference in a new issue