Skip to content
Snippets Groups Projects
Commit fa3a836d authored by echicken's avatar echicken :chicken:
Browse files

Fix addrRe

parent 9bd71001
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -83,7 +83,7 @@ function wsrsGetIPAddress() {
function getAddress() {
log(LOG_DEBUG, 'user.ip_address is ' + user.ip_address);
const addrRe = /^(127\.)|(192\.168\.)|(10\.)|(172\.1[6-9]\.)|(172\.2[0-9]\.)|(172\.3[0-1]\.)|(169\.254\.)|(::1$)|([fF][cCdD])/;
const addrRe = /(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^169\.254\.)|(^::1$)|(^[fF][cCdD])/;
if (user.ip_address.search(addrRe) > -1) {
var addr;
if (client.protocol === 'Telnet') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment