Skip to content

Commit

Permalink
Fix up the last field in ipv6 notation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Jun 10, 2019
1 parent 53f5118 commit 4568d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public_html/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ $(function() {
if(!field[0].checkValidity()) return;
var prefix = field.val();
var parts = prefix.split(':');
for(var i = 0; i < parts.length - 1; i++) {
for(var i = 0; i < parts.length; i++) {
parts[i] = String('0000' + parts[i]).slice(-4);
}
$('#name').val(parts.join('').split('').reverse().join('.') + '.ip6.arpa');
Expand Down

0 comments on commit 4568d95

Please sign in to comment.