Commit graph

6 commits

Author SHA1 Message Date
Niels Widger
c7b7b42cd3 treewide: Update JS using luci-rpc getHostHints
Update frontend JS code which uses luci-rpc getHostHints to support the new
response format which removes the `ipv4` and `ipv6` host hint string fields
and replaces them with `ipaddrs` and `ip6addrs` weighted string list fields.

Signed-off-by: Niels Widger <niels@qacafe.com>
[rework code to be forwards/backwards compatible, fix some Network.Hosts
 methods, fix IP choice ordering, change commit subject, rewrap commit
 message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2021-06-03 09:51:09 +02:00
Van Waholtz
fb302e4404 luci-app-wol: fix some untranslated strings
Signed-off-by: Van Waholtz <vanwaholtz@gmail.com>
2020-12-16 02:40:30 -08:00
Jo-Philipp Wich
3c4bc228a1 treewide: import utility classes explicitly
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-04-03 10:00:06 +02:00
Kevin Darbyshire-Bryant
9cfd3ac1e5 luci-app-wol: use uci etherwake default interface
Use uci config 'etherwake.setup.interface' to default WOL interface
selection.

On some devices the lan interface is not the first item in the drop down
interface selection list.  Configuring this parameter allows the user to
set a preferred interface to be used/selected.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-02-12 16:11:06 +00:00
Jo-Philipp Wich
1b040984c2 luci-app-wol: cope with empty stdout
Fix a cosmetic issue when etherwake is sending to an invalid interface.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-26 22:51:22 +01:00
Jo-Philipp Wich
40ee3fa3ce luci-app-woll: convert to client side rendering
Also make the interface option mandatory

Fixes: #3557
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-26 22:48:20 +01:00