Skip to content

Commit ed35369

Browse files
committed
Added a fix to allow IPv6 addresses
See: librenms-plugins#80
1 parent ea7c8f1 commit ed35369

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

data-pick.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ function update_source_step1(dataid,name,portid,ifAlias,ifDesc,ifIndex)
194194
var newlocation;
195195
var fullpath;
196196

197+
// Replace semi-colons by underscores to permit IPv6 addresses
198+
var name = name.replace(/:/g,'_');
199+
197200
var rra_path = <?php echo js_escape('./'); ?>+name+'/port-id';
198201

199202
if (typeof window.opener == "object") {

0 commit comments

Comments
 (0)