diff --git a/xtrn/wttr.in/locator.js b/xtrn/wttr.in/locator.js index e59d58b0c68f50a3112cdbf484a4339f8b81b8c4..ffaa4a3ff797f60193460600f1f82827dd146a39 100644 --- a/xtrn/wttr.in/locator.js +++ b/xtrn/wttr.in/locator.js @@ -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') {