mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/wol: fix ACL dasbhoard definitions
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<name>Services: Wake on LAN</name>
|
||||
<patterns>
|
||||
<pattern>ui/wol/*</pattern>
|
||||
<pattern>api/wol/*</pattern>
|
||||
<pattern>api/wol/wol/*</pattern>
|
||||
</patterns>
|
||||
</page-services-wakeonlan>
|
||||
</acl>
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
<wol>
|
||||
<filename>WakeOnLan.js</filename>
|
||||
<endpoints>
|
||||
<endpoint>/api/diagnostics/interface/getArp*</endpoint>
|
||||
<endpoint>/api/wol/wol/searchHost</endpoint>
|
||||
<endpoint>/api/wol/wol/set</endpoint>
|
||||
<endpoint>/diagnostics/interface/getArp</endpoint>
|
||||
</endpoints>
|
||||
<translations>
|
||||
<title>WakeOnLan</title>
|
||||
|
||||
@@ -62,7 +62,7 @@ export default class WakeOnLan extends BaseTableWidget {
|
||||
|
||||
//NOTE: this ARP list call is the most expensive one and can grow substantialy in big networks
|
||||
//With previous widget it had been done on the backend side with direct exec of 'arp -an | grep ...'
|
||||
const arp = await this.ajaxCall('/api/diagnostics/interface/getArp');
|
||||
const arp = await this.ajaxCall(`/api/diagnostics/interface/getArp${''}`);
|
||||
|
||||
for(let it = 0; it < data.rows.length; it++){
|
||||
const item = data.rows[it];
|
||||
|
||||
Reference in New Issue
Block a user