Commit graph

14964 commits

Author SHA1 Message Date
Jo-Philipp Wich
62d45da4a5 luci-base: dispatcher: fix null access on dispatching unknown urls
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4d28c390ab)
2021-10-12 23:05:16 +02:00
Jo-Philipp Wich
cfd0bdd206 luci-base: form.js: add drag-drop sorting support for mobile
Fixes: #5416
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit df75163e68)
2021-10-12 23:04:25 +02:00
Jo-Philipp Wich
48b829616e luci-mod-network: fix disabling 11w MFP for WPA3
Fixes: #5394
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0b49ed45c6)
2021-10-12 23:04:02 +02:00
Dennis Dast
3a8af31ffa luci-app-radicale2: Fix library loading
This fixes the "Authentication / Users" and "Storage" tab of
luci-app-radicale2.

Signed-off-by: Dennis Dast <mail@ddast.de>
(cherry picked from commit 29f78ce73f)
2021-10-12 23:03:57 +02:00
Jo-Philipp Wich
f20b82f57f rpcd-mod-luci: fix syntax error
Fixes: 45a398e1ed ("rpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit af4352c07e)
2021-10-12 23:03:49 +02:00
Jo-Philipp Wich
ba3f8f84ad rpcd-mod-luci: avoid PTR requests for IPv6 link-local and ULA addrs
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 45a398e1ed)
2021-10-12 23:03:45 +02:00
Jo-Philipp Wich
a9b4f93612 rpcd-mod-luci: let IPv4 hostnames take precedence over IPv6 ones
Do not overwrite IPv4-resolved hostnames with IPv6 ones in case both are
available or resolvable.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 93bd93e220)
2021-10-12 23:03:41 +02:00
Ansuel Smith
06419e9a9c luci-mod-status: fix wrong logic for maclist adding feature
Currently any new entry added to the black/whitelist deletes the
others. Fix this and improve the rule apply by firstly disconnect
the wifi client.

Fixes: #5343

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 085c4a08f5)
2021-10-12 23:03:33 +02:00
Ansuel Smith
2fe3d0ab4a luci-mod-status: cosmetic fix for isWPSEnabled in wifi status
Drop isWPSEnabled table as it's really not needed and can directly
included in the network table.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 2a97d5533c)
2021-10-12 23:03:29 +02:00
Vladislav Grigoryev
9da9d65c35 luci-mod-network: fix option ip6table in network/interfaces
Fix the incorrectly displayed value for the option "ip6table".

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 3ebdf51f9b)
2021-10-12 23:02:45 +02:00
Jo-Philipp Wich
5806ff0531 luci-base: fix off-by-one in cbi_update_table()
Fixes: #5189
Fixes: f919635310 ("luci-base: batch DOM updates to prevent slowdown")
Ref: f919635310 (commitcomment-53495580)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7d9ab8d4a7)
2021-10-12 23:01:45 +02:00
Olli Asikainen
d7be4983cf luci-base: batch DOM updates to prevent slowdown
Signed-off-by: Olli Asikainen <olli.asikainen@gmail.com>
(cherry picked from commit f919635310)
2021-10-12 23:01:35 +02:00
Jo-Philipp Wich
0ac19f6a85 luci-mod-network: fix 60GHz radio frequency configuration
Fix incorrect minimum 60GHz frequency value and ensure that a 60GHz band
choice option is available once corresponding channels are found on the
system.

Ref: http://lists.openwrt.org/pipermail/openwrt-devel/2021-July/035810.html
Suggested-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e5626ece12)
2021-10-12 23:01:29 +02:00
Jo-Philipp Wich
16e807edc9 luci-mod-network: dhcp.js: don't fail on not existing interface
Fixes: #5177
Fixes: 7e56289538 ("luci-mod-network: improve static DHCP lease validation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f57d20bfff)
2021-10-12 23:01:23 +02:00
Jo-Philipp Wich
8b02f53a37 luci-mod-network: fixes to DHCP lease validation
- validate current form value IP instead of stored uci one
 - ensure to not pass non-string values to the validator
 - remove leftover debug code
 - simplify obtaining formvalues

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9d15a4e70c)
2021-10-12 23:01:00 +02:00
Jo-Philipp Wich
e8b8a9be64 luci-mod-network: improve static DHCP lease validation
- Ensure that MAC addresses are unique within the same pool
 - Ensure that IP addresses are globally unique
 - Ensure that IP addresses are within any DHCP pool range

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7e56289538)
2021-10-12 23:00:52 +02:00
Dirk Brenken
e3ef035260 luci-app-fwknopd: trivial typo fix
* fix for #5073

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 07d6ac5995)
2021-10-12 23:00:36 +02:00
David Bauer
5b4eb1dff7 rpcd-mod-luci: support parsing 11ax HW / HT modes
Add support for parsing 11ax modes returned from UBUS. This is required
so the frontend can display information about supported 11ax operation.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 7b11e848ac)
2021-10-12 23:00:29 +02:00
Michael Pratt
f0ba6c8475 luci-mod-network: do not remove enable_vlan from config
There are many switch drivers where VLAN functionality is enabled by default.
In this situation, LuCI cannot be used to disable VLAN functionality,
because removing the line from configuration results in VLAN remaining enabled
by the driver.

When enable_vlan is set to 0 by default
by using functions in board.d,
and an unrelated change is made on the Switch webpage,
then the enable_vlan option gets deleted when changes are saved.

Therefore, the option needs to be preserved, whether set to 0 or 1.

Signed-off-by: Michael Pratt <mcpratt@pm.me>
(cherry picked from commit 51ab737a4b)
2021-10-12 23:00:10 +02:00
Stan Grishin
2e0ff79865
Merge pull request #5413 from stangri/21.02-luci-app-advanced-reboot
[21.02] luci-app-advanced-reboot: bugfix for Linksys E4200v2
2021-10-06 14:50:18 -07:00
Stan Grishin
0cccc685d6 luci-app-advanced-reboot: bugfix for Linksys E4200v2
* bugfix for Linksys E4200v2
* backport updates from master

Signed-off-by: Stan Grishin <stangri@melmac.net>
2021-10-06 21:48:25 +00:00
Hannu Nyman
e10e960b4d treewide: i18n - Backport translations
Backport translations from master.
Sync.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-10-05 21:53:09 +03:00
Hannu Nyman
cb0574fc67 luci-app-statistics: Remove erroneous include from default config
Remove the unnecessary Include line from the default config.
It causes error at collectd start, as the directory is missing.
  daemon.err collectd[9722]: configfile: stat (/etc/collectd/conf.d) failed: No such file or directory

Leave the line as a comment/example.

Fixes #5373

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 2c27f5c941)
2021-10-05 21:49:41 +03:00
Hannu Nyman
b39d9bf4bb luci-app-statistics: standardise newline usage
Fix newline usage in a few graph definitions.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 12b13fe89a)
2021-09-28 23:03:54 +03:00
Stan Grishin
26308981ca
Merge pull request #5392 from ByteAndNibble/openwrt-21.02
[21.02] luci-app-https-dns-proxy: add ControlD as provider
2021-09-26 11:41:01 -07:00
Aleem Hossain
bdd7f4ddcf luci-app-https-dns-proxy: add ControlD as provider
Signed-off-by: Aleem Hossain <aleem@tectonic.it>
2021-09-26 14:54:44 +01:00
Jo-Philipp Wich
dda30fe7f5 luci-app-transmission: grant access to group and passwd files
This is required for the user and group ID dropdowns in the
configuration.

Fixes: #4697
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1d9067b271)
2021-09-24 20:10:31 +02:00
Schleifer, Werner
24471ceb3e luci-app-dawn: add missing quotation mark
Signed-off-by: Schleifer, Werner <werner.schleifer@gmx.de>
(cherry picked from commit d4ab37d9a0)
2021-09-24 19:25:30 +03:00
Jo-Philipp Wich
b613f3a2ae luci-mod-network: fix name of network.device.isolate uci option
Fixes: #5383
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e0053fe79d)
2021-09-23 17:34:41 +02:00
Hannu Nyman
efb535e5c7 treewide: i18n - Sync, backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-23 18:19:52 +03:00
Paul Spooren
4c45444f39 luci-app-attendedsysupgrade: use correct linter settings
The previous settings would use spaces which messed up things since LuCI
uses tabs everywhere.

Also removed a stray console.log

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 641bfe3967)
2021-09-15 11:27:49 -10:00
Paul Spooren
f347db0698 luci-app-attendedsysupgrade: support revision checks
SNAPSHOTS are not real releases and therefore the app always offers an
upgrade, even if running the latest build. To prevent that all SNAPSHOTS
now check for the running revision and if a newer one is available.

Also do a bunch of refactoring based on JavaScript I learned over the
last week.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit f799d550b6)
2021-09-15 11:27:49 -10:00
George Iv
aae1d349ae
luci-app-yggdrasil: Update to support v0.4.0 config
Signed-off-by: George Iv <zhoreeq@users.noreply.github.com>
(cherry picked from commit 3953b1a5b2)
2021-09-12 07:59:52 +02:00
Hannu Nyman
f24d61dd49 treewide: i18n - Backport translations
Backport translations from master.
Sync translations.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-09-09 18:01:47 +03:00
Dirk Brenken
23e3d938fa
luci-app-travelmate: EAP-bugfixes
* fix numerous errors in EAP handling
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 9f9247a08c)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-09-05 22:05:47 +02:00
Paul Dee
3b3c2e5f9f luci-app-firewall: add ipv6 exclusive ICMP types
fixes #5213

Signed-off-by: Paul Dee <systemcrash@users.noreply.github.com>
(cherry picked from commit 19c66ef539)
Update commit description
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-09-01 07:48:42 +02:00
Vladislav Grigoryev
d9a228ec4a luci-mod-network: fix route6 source autocomplete
Fix the wrong value for the "source" option of the "route6" section.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 8b4015036d)
2021-08-31 09:00:35 +02:00
Florian Eckert
678ee038c0 luci-theme-openwrt-2020: add css success label
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a655389032)
2021-08-31 08:52:10 +02:00
Keith Irwin
71fe35ce69 luci-app-wireguard: set allowed_ips option as optional value
Signed-off-by: Keith Irwin <git@ki9.us>
(cherry picked from commit 092109c905)
fixed commit title
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-08-31 08:05:28 +02:00
Hannu Nyman
3c115cddd4 treewide: i18n - Backport translations, sync.
Sync translations.
Backport translations from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2021-08-25 20:22:45 +03:00
Paul Spooren
0a6151148e luci-app-attendedsysupgrade: use detail not message
The new API unifies all human readable responses in the `detail` field
to follow the newly used framework.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 2a29911121)
2021-08-23 09:28:29 -10:00
Paul Spooren
9aa5afa780 luci-app-attendedsysupgrade: use latest.json
The content is the same response as for `/api/latest.json` but
statically hosted by a webserver rather than Python generated.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit a672875402)
2021-08-23 09:28:29 -10:00
Paul Spooren
0ac075009e luci-app-attendedsysupgrade: show position in queue
The server provides a queue_position argument, show it.

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 53ff7ca676)
2021-08-23 09:28:29 -10:00
Paul Spooren
624578d309 luci-app-attendedsysupgrade: add timeout and catch
If the upgrade server API does not respond, show an error message.
Fix #5222

While at it, minimal code linting

Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit ff24b78c80)
2021-08-23 09:28:29 -10:00
Dirk Brenken
ed43006d9c
luci-app-travelmate: sync with travelmate 2.0.6
* a few (visual) fixes reported in the forum
* emphasize normal uplinks in blue, vpn uplinks in green
* sync translations

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit f1d1e752b8)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-08-22 09:19:15 +02:00
Dirk Brenken
8eb2c94e48
luci-app-travelmate: sync with travelmate 2.0.5-3
* adapt the travelmate UI to support the changed 'trm_maxscan' option

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit fd7494ffb1)
Signed-off-by: Dirk Brenken <dev@brenken.org>
2021-08-22 09:14:54 +02:00
Vladislav Grigoryev
422c1752a6 luci-base: support loopback by widgets.NetworkSelect
Support the "loopback" interface by "widgets.NetworkSelect".
Enable the "loopback" option to include this interface.
Can be used to configure interface binding for services.

Signed-off-by: Vladislav Grigoryev <vg.aetera@gmail.com>
(cherry picked from commit 376af36975)
2021-08-19 09:17:21 +02:00
Ansuel Smith
c3580ee68f luci-mod-system: hide unsupported option on flash.js
Hide unsupported option when /rom is not used in flash.js

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

(cherry picked from commit 82035eec61)
2021-08-18 20:46:04 +03:00
Ansuel Smith
6389826039 luci-mod-system: improve sysupgrade page
- Add missing -k and -u option from sysupgrade page.
- Fix missing check for image verification exit code
- Provide the actual reason of the image verification

Fixes: #4160

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>

(cherry picked from commit 0f4f6e89f1)
2021-08-18 20:45:18 +03:00
Florian Eckert
854399a329 luci-mod-battstatus: chmod battstatus.js to 644
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 7f5751c16f)
2021-08-17 12:11:14 +02:00