mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Improved IP address handling (includes IPv6)
This commit is contained in:
parent
d875f21647
commit
ca472ff597
14 changed files with 178 additions and 220 deletions
|
@ -2720,7 +2720,9 @@ $(document).ready(function() {
|
|||
getPlexPyURL().then(function (url) {
|
||||
var parser = document.createElement('a');
|
||||
parser.href = url;
|
||||
$('#api_qr_private').toggle(isPrivateIP(parser.hostname));
|
||||
isPrivateIP(parser.hostname).then(function (valid) {
|
||||
$('#api_qr_private').toggle((valid !== 'n/a'));
|
||||
});
|
||||
|
||||
var encoded_string = url + '|' + $('#api_key').val();
|
||||
$('#api_qr_string').html(encoded_string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue