forked from svrjs/svrjs
Add "localhost" entry to the block list, when "block localhost" is typed into SVR.JS rather than "::ffff:localhost".
This commit is contained in:
parent
c85df7cd26
commit
cb81658318
1 changed files with 1 additions and 1 deletions
2
svr.js
2
svr.js
|
@ -5241,7 +5241,7 @@ function start(init) {
|
|||
else if (!cluster.isPrimary) process.send("Cannot block non-existent IP.");
|
||||
} else {
|
||||
for (var i = 0; i < ip.length; i++) {
|
||||
if (ip[i].indexOf(":") == -1) {
|
||||
if (ip[i] != "localhost" && ip[i].indexOf(":") == -1) {
|
||||
ip[i] = "::ffff:" + ip[i];
|
||||
}
|
||||
if (!blocklist.check(ip[i])) {
|
||||
|
|
Reference in a new issue