Added ipv6 support

This commit is contained in:
gSpot
2020-07-07 17:49:06 +03:00
parent ee832eb851
commit 4152a7fe1a
2 changed files with 6 additions and 3 deletions

View File

@@ -6,11 +6,14 @@ return L.Class.extend({
hosts: [
'8.8.8.8',
'2a00:1450:4010:c05::71',
'1.1.1.1',
'8.8.4.4',
'2606:4700::6811:b055',
//'8.8.4.4',
//'2a00:1450:4010:c09::66',
],
checkInterval: 11, // 5 x 11 = 55 sec.
checkInterval: 6, // 5 x 6 = 30 sec.
load: async function() {
window.internetDetectorCounter = ('internetDetectorCounter' in window) ?

View File

@@ -3,7 +3,7 @@
"description": "Grant access to internet-detector procedures",
"read": {
"file": {
"/bin/ping -c 1 -W 1 [0-9.]*": [ "exec" ]
"/bin/ping -c 1 -W 1 [a-z0-9:.]*": [ "exec" ]
}
}
}