Also check for linkLocal IP addresses

This commit is contained in:
JonnyWong16 2021-03-22 10:27:25 -07:00
parent bc47f9abd7
commit 1ff6a54d70
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -281,7 +281,7 @@ function isPrivateIP(ip_address) {
if (ipaddr.isValid(ip_address)) {
var addr = ipaddr.process(ip_address);
if (addr.range() === 'loopback' || addr.range() === 'private') {
if (addr.range() === 'loopback' || addr.range() === 'private' || addr.range() === 'linkLocal') {
defer.resolve();
} else {
defer.reject();