mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Also check for linkLocal IP addresses
This commit is contained in:
parent
bc47f9abd7
commit
1ff6a54d70
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ function isPrivateIP(ip_address) {
|
||||||
|
|
||||||
if (ipaddr.isValid(ip_address)) {
|
if (ipaddr.isValid(ip_address)) {
|
||||||
var addr = ipaddr.process(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();
|
defer.resolve();
|
||||||
} else {
|
} else {
|
||||||
defer.reject();
|
defer.reject();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue