mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-10 05:26:49 +03:00
Added ipv6 support
This commit is contained in:
@@ -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) ?
|
||||
|
||||
@@ -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" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user