oweals/luci.git
4 years agoluci-app-vpn-policy-routing: improve i18n 3897/head
Stan Grishin [Sat, 11 Apr 2020 11:42:23 +0000 (11:42 +0000)]
luci-app-vpn-policy-routing: improve i18n

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoMerge pull request #3878 from stangri/19.07-luci-app-advanced-reboot
Hannu Nyman [Sat, 11 Apr 2020 07:50:56 +0000 (10:50 +0300)]
Merge pull request #3878 from stangri/19.07-luci-app-advanced-reboot

[19.07] luci-app-advanced-reboot: improve localization by moving from translate to translatef

4 years agoMerge pull request #3890 from stangri/19.07-luci-app-https-dns-proxy
Hannu Nyman [Sat, 11 Apr 2020 07:49:47 +0000 (10:49 +0300)]
Merge pull request #3890 from stangri/19.07-luci-app-https-dns-proxy

[19.07] luci-app-https-dns-proxy: improve i18n

4 years agoluci-app-https-dns-proxy: improve i18n 3890/head
Stan Grishin [Sat, 11 Apr 2020 02:30:14 +0000 (02:30 +0000)]
luci-app-https-dns-proxy: improve i18n

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoluci-app-advanced-reboot: improve localization by moving from translate to translatef 3878/head
Stan Grishin [Sat, 11 Apr 2020 01:11:38 +0000 (01:11 +0000)]
luci-app-advanced-reboot: improve localization by moving from translate to translatef

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoMerge pull request #3856 from dibdot/adblock
Jo-Philipp Wich [Wed, 8 Apr 2020 07:20:04 +0000 (09:20 +0200)]
Merge pull request #3856 from dibdot/adblock

[19.07] luci-app-adblock: release 4.0.3

4 years ago[19.07] luci-app-adblock: release 4.0.3 3856/head
Dirk Brenken [Tue, 7 Apr 2020 20:37:51 +0000 (22:37 +0200)]
[19.07] luci-app-adblock: release 4.0.3

* sync with adblock 4.0.3 in 19.07 package branch

Signed-off-by: Dirk Brenken <dev@brenken.org>
4 years agoMerge pull request #3853 from stangri/19.07-luci-app-https-dns-proxy
Hannu Nyman [Tue, 7 Apr 2020 07:18:09 +0000 (10:18 +0300)]
Merge pull request #3853 from stangri/19.07-luci-app-https-dns-proxy

[19.07] luci-app-https-dns-proxy: Move help links to providers files, Add LibreDNS

4 years agoluci-app-https-dns-proxy: Move help links to providers files, Add LibreDNS. 3853/head
Stan Grishin [Mon, 6 Apr 2020 14:00:21 +0000 (14:00 +0000)]
luci-app-https-dns-proxy: Move help links to providers files, Add LibreDNS.

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoMerge pull request #3846 from joweisberg/openwrt-19.07
Hannu Nyman [Sun, 5 Apr 2020 18:11:28 +0000 (21:11 +0300)]
Merge pull request #3846 from joweisberg/openwrt-19.07

luci-app-samba: Fix path url link to mounts

4 years agoluci-app-samba: Fix path url link to mounts 3846/head
joweisberg [Sun, 5 Apr 2020 18:06:40 +0000 (20:06 +0200)]
luci-app-samba: Fix path url link to mounts

Signed-off-by: joweisberg <jo.weisberg@gmail.com>
4 years agoMerge pull request #3829 from stangri/19.07-luci-app-https-dns-proxy
Hannu Nyman [Fri, 3 Apr 2020 12:57:15 +0000 (15:57 +0300)]
Merge pull request #3829 from stangri/19.07-luci-app-https-dns-proxy

[19.07] luci-app-https-dns-proxy: better service control & buttons styling

4 years agoMerge pull request #3826 from stangri/19.07-luci-app-vpnbypass
Hannu Nyman [Fri, 3 Apr 2020 12:56:23 +0000 (15:56 +0300)]
Merge pull request #3826 from stangri/19.07-luci-app-vpnbypass

[19.07] luci-app-vpnbypass: better service control & buttons styling

4 years agoMerge pull request #3824 from stangri/19.07-luci-app-vpn-policy-routing
Hannu Nyman [Fri, 3 Apr 2020 12:52:37 +0000 (15:52 +0300)]
Merge pull request #3824 from stangri/19.07-luci-app-vpn-policy-routing

[19.07] luci-app-vpn-policy-routing: better service control & buttons styling

4 years agoMerge pull request #3821 from stangri/19.07-luci-app-simple-adblock
Hannu Nyman [Fri, 3 Apr 2020 12:51:01 +0000 (15:51 +0300)]
Merge pull request #3821 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: better service control & buttons styling

4 years agoluci-app-https-dns-proxy: better service control & buttons styling 3829/head
Stan Grishin [Fri, 3 Apr 2020 12:50:22 +0000 (12:50 +0000)]
luci-app-https-dns-proxy: better service control & buttons styling

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoluci-app-vpnbypass: better service control & buttons styling 3826/head
Stan Grishin [Fri, 3 Apr 2020 12:32:36 +0000 (12:32 +0000)]
luci-app-vpnbypass: better service control & buttons styling

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoluci-app-vpn-policy-routing: better service control & buttons styling 3824/head
Stan Grishin [Fri, 3 Apr 2020 12:30:05 +0000 (12:30 +0000)]
luci-app-vpn-policy-routing: better service control & buttons styling

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoluci-app-simple-adblock: better service control & buttons styling 3821/head
Stan Grishin [Fri, 3 Apr 2020 12:25:28 +0000 (12:25 +0000)]
luci-app-simple-adblock: better service control & buttons styling

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoluci-mod-network: rework signal badge disabled state
Jo-Philipp Wich [Thu, 2 Apr 2020 13:20:23 +0000 (15:20 +0200)]
luci-mod-network: rework signal badge disabled state

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit eb1422defe529f93b073abc72a3601b0b22b6c7e)

4 years agoluci-mod-wireless: avoid signal badge wrapping in scan list
Jo-Philipp Wich [Wed, 1 Apr 2020 17:15:07 +0000 (19:15 +0200)]
luci-mod-wireless: avoid signal badge wrapping in scan list

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 515069f9ecf7eb3d5b83bb79ae1dfa799bf9630d)

4 years agoluci-mod-network, luci-mod-status: allow assoclist wrapping
Jo-Philipp Wich [Tue, 24 Mar 2020 21:13:01 +0000 (22:13 +0100)]
luci-mod-network, luci-mod-status: allow assoclist wrapping

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a600ebb5fe14b13cb53669eb73b86f66cc699e94)
(cherry picked from commit 04c73f1613734b3f2a7204c24d7c9267d1b45955)

4 years agoluci-mod-network: adjust assoclist markup for easier styling
Jo-Philipp Wich [Mon, 23 Mar 2020 21:14:02 +0000 (22:14 +0100)]
luci-mod-network: adjust assoclist markup for easier styling

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1b7e923cf6ca3da515104cd732de64c5312942dc)

4 years agoluci-mod-network: properly handle "no signal" and "disabled" in signal badges
Jo-Philipp Wich [Sun, 1 Mar 2020 19:58:51 +0000 (20:58 +0100)]
luci-mod-network: properly handle "no signal" and "disabled" in signal badges

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit cf09705ee394ea9cad90581df09a81ec48b48906)

4 years agoluci-base: ui.js: properly handle null choices in dropdown constructor
Jo-Philipp Wich [Wed, 1 Apr 2020 16:41:53 +0000 (18:41 +0200)]
luci-base: ui.js: properly handle null choices in dropdown constructor

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f1aa3f8f6e378a2fd212590cb3c7b426c014e8ba)

4 years agoluci-mod-status: luci-bwc: skip "." and ".." when finding netdevs
Jo-Philipp Wich [Wed, 1 Apr 2020 16:19:30 +0000 (18:19 +0200)]
luci-mod-status: luci-bwc: skip "." and ".." when finding netdevs

Skip the "." and ".." directory entries of "/sys/class/net/" instead of
passing them on to libiwinfo's probe function. This avoids a situation
where the kernel requests a modprobe of "netdev-." and "netdev-.." over
and over again, resulting in high load on lower end systems.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 16f0997bdbf85df0c7bae7f0773a118714d15cdf)

4 years agoMerge pull request #3793 from stangri/19.07-luci-app-simple-adblock
Hannu Nyman [Sun, 29 Mar 2020 07:01:58 +0000 (10:01 +0300)]
Merge pull request #3793 from stangri/19.07-luci-app-simple-adblock

[19.07] luci-app-simple-adblock: better status/error display, better service control

4 years agoluci-app-simple-adblock: better status/error display 3793/head
Stan Grishin [Sun, 29 Mar 2020 05:22:37 +0000 (05:22 +0000)]
luci-app-simple-adblock: better status/error display

Signed-off-by: Stan Grishin <stangri@melmac.net>
4 years agoluci-app-openvpn: fix upload input validator
Dirk Brenken [Wed, 25 Mar 2020 07:38:07 +0000 (08:38 +0100)]
luci-app-openvpn: fix upload input validator

* accept/replace common '.' seperator in instance names as well,
  see comment in #2235

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 51579cd49e67890a427bb56a76dc49719d39a9f6)

4 years agoluci-mod-network: add WPA3-EAP and mixed WPA2/WPA3-EAP settings
Jo-Philipp Wich [Thu, 26 Mar 2020 21:02:42 +0000 (22:02 +0100)]
luci-mod-network: add WPA3-EAP and mixed WPA2/WPA3-EAP settings

Fixes: #3363
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit cae804536785cac5d5a2b3b8e3b9d38c1e623148)

4 years agoluci-app-firewall: use Firewall.removeZone() helper
Jo-Philipp Wich [Thu, 26 Mar 2020 18:14:47 +0000 (19:14 +0100)]
luci-app-firewall: use Firewall.removeZone() helper

Fixes: FS#2932
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=2932
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0ff4dc822b62bdc4abc925a2d1a6b8641defa98a)

4 years agoluci-base: firewall.js: fix Firewall.removeZone()
Jo-Philipp Wich [Thu, 26 Mar 2020 18:12:38 +0000 (19:12 +0100)]
luci-base: firewall.js: fix Firewall.removeZone()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4c55e8226d7d6808ad7aa7d9a420dfda628a89f0)

4 years agoMerge pull request #3777 from aparcar/noci-19
Hannu Nyman [Sat, 21 Mar 2020 19:57:43 +0000 (21:57 +0200)]
Merge pull request #3777 from aparcar/noci-19

[19.07]CI: remove circleci

4 years agoCI: remove circleci 3777/head
Paul Spooren [Sat, 21 Mar 2020 19:54:03 +0000 (09:54 -1000)]
CI: remove circleci

LuCI packages are mostly architecture independent and therefore require
no compile checks.

Signed-off-by: Paul Spooren <mail@aparcar.org>
4 years agoMerge pull request #3763 from oofnikj/openwrt-19.07
Jo-Philipp Wich [Sat, 21 Mar 2020 16:54:26 +0000 (17:54 +0100)]
Merge pull request #3763 from oofnikj/openwrt-19.07

add ipv6 firewall view

4 years agoluci-app-statistics: add ipv6 firewall view 3763/head
Jordan Sokolic [Mon, 16 Mar 2020 07:57:45 +0000 (09:57 +0200)]
luci-app-statistics: add ipv6 firewall view

Signed-off-by: Jordan Sokolic <oofnik@gmail.com>
4 years agoluci-theme-rosy: mark as broken
Jo-Philipp Wich [Sun, 22 Dec 2019 17:46:16 +0000 (18:46 +0100)]
luci-theme-rosy: mark as broken

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit fff15e4e712a4ac5bda9cdb4280445eec502ddbb)

4 years agothemes: ensure that data-page attribute is escaped
Jo-Philipp Wich [Sun, 15 Mar 2020 16:48:40 +0000 (17:48 +0100)]
themes: ensure that data-page attribute is escaped

Fixes: #3757
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d7dc391d4af4ad5dd6d7e1f6ef9891aa21fd220)

4 years agoRevert "luci-base: require minimum versions of rpcd and cgi-io" 3741/head
Jo-Philipp Wich [Sat, 7 Mar 2020 09:54:53 +0000 (10:54 +0100)]
Revert "luci-base: require minimum versions of rpcd and cgi-io"

This reverts commit fb679333a5c0dbba66809559dac2badbc7dcba04.

Version constraints are not correctly handled by luci-app-opkg.

Ref: https://forum.openwrt.org/t/something-changed-luci-compat/56959/5
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoRevert "luci-base: move unused tools.webadmin class to luci-compat"
Jo-Philipp Wich [Fri, 6 Mar 2020 16:35:03 +0000 (17:35 +0100)]
Revert "luci-base: move unused tools.webadmin class to luci-compat"

This reverts commit a22e8bc2e5ce44e0bc20368c6b5cb303a95e8999.

Moving the class file causes too much churn in stable due to the
need to upgrade luci-base for legacy apps.

Ref: #3726
Ref: https://forum.openwrt.org/t/package-install-issues/57010
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-app-firewall: tools.firewall: properly handle protocol 0
Jo-Philipp Wich [Wed, 4 Mar 2020 19:21:23 +0000 (20:21 +0100)]
luci-app-firewall: tools.firewall: properly handle protocol 0

The existing code failed to anticipate that '' == 0 in JS.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2c036b36ce76c3c7430bf936e131f0d9d4ab83c4)

4 years agoluci-base: require minimum versions of rpcd and cgi-io
Jo-Philipp Wich [Wed, 4 Mar 2020 08:56:45 +0000 (09:56 +0100)]
luci-base: require minimum versions of rpcd and cgi-io

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-base: move unused tools.webadmin class to luci-compat
Jo-Philipp Wich [Wed, 4 Mar 2020 08:49:13 +0000 (09:49 +0100)]
luci-base: move unused tools.webadmin class to luci-compat

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-theme-bootstrap: fix overview wireless display quirks
Jo-Philipp Wich [Wed, 4 Mar 2020 08:29:07 +0000 (09:29 +0100)]
luci-theme-bootstrap: fix overview wireless display quirks

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit aa2445cdd85109987b893fb950adbe7d3ef2dddb)

4 years agoluci-mod-status: don't drop lines with negated addresses
Jo-Philipp Wich [Tue, 18 Feb 2020 12:58:52 +0000 (13:58 +0100)]
luci-mod-status: don't drop lines with negated addresses

Fixes: #3642
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c3b07fb3586500afb6395bef6fe05ac8ae008df7)

4 years agoluci-mod-status: routes.js: remove debug code
Jo-Philipp Wich [Wed, 4 Mar 2020 07:25:15 +0000 (08:25 +0100)]
luci-mod-status: routes.js: remove debug code

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit acef56726c09e9eed15165be17aa955bf93d2e93)

4 years agoluci-mod-status: reimplement route status page as client side view
Jo-Philipp Wich [Sun, 29 Dec 2019 22:03:58 +0000 (23:03 +0100)]
luci-mod-status: reimplement route status page as client side view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 16d049f7cd76f0e309814a2b09cde32ff680d962)

4 years agoluci-mod-status: reimplement log pages as client side views
Jo-Philipp Wich [Sat, 21 Dec 2019 19:28:25 +0000 (20:28 +0100)]
luci-mod-status: reimplement log pages as client side views

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 939b371bc72f4c020c499c815f636dafc296829a)

4 years agoluci-mod-status: reimplement iptables status page as client side view
Jo-Philipp Wich [Sat, 21 Dec 2019 18:23:10 +0000 (19:23 +0100)]
luci-mod-status: reimplement iptables status page as client side view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit b9bb34612e28a239153dd2e041921a50e4d7578f)

4 years agoluci-mod-status: replace iptables controller actions with cgi-io calls
Jo-Philipp Wich [Wed, 18 Dec 2019 20:57:01 +0000 (21:57 +0100)]
luci-mod-status: replace iptables controller actions with cgi-io calls

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 43a4481e103d764d6f656f2ed1f5c57f8580858e)

4 years agoluci-mod-network: replace controller address check action with cgi-io script
Jo-Philipp Wich [Wed, 18 Dec 2019 20:32:48 +0000 (21:32 +0100)]
luci-mod-network: replace controller address check action with cgi-io script

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 3a657b8ab585f6e0fef5c9128dc84c5a008a6969)

4 years agoluci-mod-network: reimplement diagnostics page as client side view
Jo-Philipp Wich [Sun, 15 Dec 2019 21:35:21 +0000 (22:35 +0100)]
luci-mod-network: reimplement diagnostics page as client side view

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit ab07b8c4d960925fe3467ea666871965b5b34259)

4 years agoluci-base: fs.js: exec_direct(): add ability to encode command as latin1
Jo-Philipp Wich [Wed, 12 Feb 2020 10:38:53 +0000 (11:38 +0100)]
luci-base: fs.js: exec_direct(): add ability to encode command as latin1

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit dc60aaeb77575bc261331ba1ea288d18c330f160)

4 years agoluci-base: fs.js: support Blob/JSON in read_direct() and exec_direct()
Jo-Philipp Wich [Thu, 30 Jan 2020 10:58:15 +0000 (11:58 +0100)]
luci-base: fs.js: support Blob/JSON in read_direct() and exec_direct()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit da4b0f0483024066a163080324638eb3761bd3aa)

4 years agoluci-base: luci.js: allow overriding response type for requests
Jo-Philipp Wich [Thu, 30 Jan 2020 10:45:46 +0000 (11:45 +0100)]
luci-base: luci.js: allow overriding response type for requests

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 478ed0d886af87415efb2ad81e59ae7027a80d6d)

4 years agoluci-base: remove hardcoded cgi-bin path
Ansuel Smith [Wed, 15 Jan 2020 23:30:30 +0000 (00:30 +0100)]
luci-base: remove hardcoded cgi-bin path

Currently LuCI can be loaded only when placed in the root of the server as the cgi-bin path are hardcoded. Change the index.html to load the cgi-bin path from the current level.
Also add a new entry in the env Object to make the cgi_base path easily accessible.
This variable will be based on the position of /cgi-bin/luci.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 5e6ec8562fe828934ef835490cee405653b06d3a)

4 years agotreewide: resync and merge master translations
Jo-Philipp Wich [Tue, 3 Mar 2020 20:35:11 +0000 (21:35 +0100)]
treewide: resync and merge master translations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-base: fix typos
Balázs Úr [Tue, 17 Dec 2019 10:41:00 +0000 (11:41 +0100)]
luci-base: fix typos

Signed-off-by: Balázs Úr <balazs@urbalazs.hu>
(backported from commit d0bc86bcc3fc0c6668e04601344daa956cea2b32)

4 years agoluci-proto-wireguard: remove peer sections when deleting interface
Jo-Philipp Wich [Tue, 3 Mar 2020 20:14:04 +0000 (21:14 +0100)]
luci-proto-wireguard: remove peer sections when deleting interface

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 890dcac2de7b1d6bc6768c69ea7129d27a809ef9)

4 years agoluci-base: network.js: gracefully handle deleteConfiguration() rejects
Jo-Philipp Wich [Tue, 3 Mar 2020 20:30:32 +0000 (21:30 +0100)]
luci-base: network.js: gracefully handle deleteConfiguration() rejects

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d5f30d335ff0651a3291e350602cba7409cf1e4a)

4 years agoluci-base: network.js: add Protocol.deleteConfiguration() callback
Jo-Philipp Wich [Tue, 3 Mar 2020 20:12:44 +0000 (21:12 +0100)]
luci-base: network.js: add Protocol.deleteConfiguration() callback

Add a new Protocol.deleteConfiguration() callback function which can be
overridden by protocol handler to perform additional cleanup tasks, such
as unsetting related uci entries which are not part of the interface
configuration itself.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a22aba2fed7b95f241b70c215e23e5699a3ff9d9)

4 years agoluci-app-adblock: Fix enter key submitting form but not showing any results.
Stefan Sundin [Thu, 27 Feb 2020 02:53:49 +0000 (18:53 -0800)]
luci-app-adblock: Fix enter key submitting form but not showing any results.

Signed-off-by: Stefan Sundin <git@stefansundin.com>
(cherry picked from commit 872693761117238aa5caff0408612a7467bb6a89)

4 years agoluci-app-firewall: don't treat zone name as network fallback
Jo-Philipp Wich [Mon, 2 Mar 2020 09:11:44 +0000 (10:11 +0100)]
luci-app-firewall: don't treat zone name as network fallback

Drop obsolete extra logic which treats the zone name as covered network
name in case the network list is unset. This behaviour applied to the
pre-fw3 uci firewall, but is not supported since fw3 anymore.

Ref: https://forum.openwrt.org/t/luci-zone-creation-bug/55921
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 663134cd2d6b9603d69f59665715586f77f4610a)

4 years agoluci-base: firewall.js: don't treat zone name as network fallback
Jo-Philipp Wich [Mon, 2 Mar 2020 09:08:32 +0000 (10:08 +0100)]
luci-base: firewall.js: don't treat zone name as network fallback

Drop obsolete extra logic which treats the zone name as covered network
name in case the network list is unset. This behaviour applied to the
pre-fw3 uci firewall, but is not supported since fw3 anymore.

Ref: https://forum.openwrt.org/t/luci-zone-creation-bug/55921
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4052436d825e1e78d1734ddd4d06d2291fbc5684)

4 years agoluci-mod-network: switch.js: fix internal port ordering
Jo-Philipp Wich [Mon, 2 Mar 2020 08:34:03 +0000 (09:34 +0100)]
luci-mod-network: switch.js: fix internal port ordering

Fixes: #3709
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 1c547d36b545e79838acca021767071ae95ca5c9)

4 years agorpcd-mod-luci: use correct dlopen() flags
Jo-Philipp Wich [Mon, 2 Mar 2020 07:17:56 +0000 (08:17 +0100)]
rpcd-mod-luci: use correct dlopen() flags

Fixes: #3707
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit ff4111f6571d6faad7ae8b55c624d09b8c5f504a)

4 years agoluci-app-minidlna: fix service check
Jo-Philipp Wich [Sun, 1 Mar 2020 16:32:23 +0000 (17:32 +0100)]
luci-app-minidlna: fix service check

The service process was renamed from `minidlna` to `minidlnad`.

Fixes: #3700
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0d68d0ad7bd2ab036caba973daa85864f8ec81a3)

4 years agotreewide: merge master translations
Jo-Philipp Wich [Wed, 26 Feb 2020 15:20:19 +0000 (16:20 +0100)]
treewide: merge master translations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-app-opkg: gracefully handle empty config files
Jo-Philipp Wich [Sun, 23 Feb 2020 20:16:23 +0000 (21:16 +0100)]
luci-app-opkg: gracefully handle empty config files

Fixes: #3668
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 562425605af51443986cb2596199564e4102ffff)

4 years agoluci-mod-status: hide DHCP status if dnsmasq/odhcpd aren't present
Jo-Philipp Wich [Sun, 23 Feb 2020 20:12:54 +0000 (21:12 +0100)]
luci-mod-status: hide DHCP status if dnsmasq/odhcpd aren't present

Fixes: #3674
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4efc7cbbda86280343683a7d1c2563233c499550)

4 years agoluci-app-firewall: snats.js: fix rewrite IP validation for SNAT target
Jo-Philipp Wich [Sat, 22 Feb 2020 21:19:54 +0000 (22:19 +0100)]
luci-app-firewall: snats.js: fix rewrite IP validation for SNAT target

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit d527c28ffa973e04f1ed3eac9f4a7504404b4fcd)

4 years agotreewide: resync and backport translations
Jo-Philipp Wich [Fri, 21 Feb 2020 21:22:17 +0000 (22:22 +0100)]
treewide: resync and backport translations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-mod-network: wifi join: allow reclaiming empty wwan networks
Jo-Philipp Wich [Fri, 21 Feb 2020 21:12:31 +0000 (22:12 +0100)]
luci-mod-network: wifi join: allow reclaiming empty wwan networks

Fixes: #3660
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 48e18fb8acfdc661793582e4a907b10b9e8d0d43)

4 years agoluci-mod-network: wifi join: add option to lock bssid
Jo-Philipp Wich [Fri, 21 Feb 2020 20:30:06 +0000 (21:30 +0100)]
luci-mod-network: wifi join: add option to lock bssid

Fixes: #3661
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 7ec007f926a9c966b3297085c4c46915372ba1dc)

4 years agoluci-mod-network: wifi scan: add button to start/stop refreshes
Jo-Philipp Wich [Fri, 21 Feb 2020 20:09:45 +0000 (21:09 +0100)]
luci-mod-network: wifi scan: add button to start/stop refreshes

Fixes: #3662
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit a2fe3d9fc4f967b9d79346f358aaaf12eeb1e040)

4 years agoluci-mod-network: explicitely configure "none" encryption in wifi join
Jo-Philipp Wich [Fri, 21 Feb 2020 19:53:42 +0000 (20:53 +0100)]
luci-mod-network: explicitely configure "none" encryption in wifi join

Fixes: #3663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9b024767d7604c5a17b1e70df45231f134282003)

4 years agoluci-mod-network, luci-mod-status: harmonize wifi signal indicators
Jo-Philipp Wich [Mon, 17 Feb 2020 08:49:34 +0000 (09:49 +0100)]
luci-mod-network, luci-mod-status: harmonize wifi signal indicators

Fixes: #3636
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 2cad20e7ea90c962020bb2f2463fb660271b84ea)

4 years agoMerge pull request #3622 from Andy2244/luci-app-ksmbd_new-UCI-(19.07)
Jo-Philipp Wich [Mon, 17 Feb 2020 07:52:27 +0000 (08:52 +0100)]
Merge pull request #3622 from Andy2244/luci-app-ksmbd_new-UCI-(19.07)

[19.07] luci-app-ksmbd: support new UCI option, update for 3.2.1 version

4 years agoluci-app-ksmbd: support new UCI option "allow_legacy_protocols" 3622/head
Andy Walsh [Sat, 15 Feb 2020 16:18:09 +0000 (17:18 +0100)]
luci-app-ksmbd: support new UCI option "allow_legacy_protocols"

* support new UCI option "allow_legacy_protocols"

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
4 years agoluci-app-ksmbd: update for 3.2.1 version (usmbd -> ksmbd.mountd)
Andy Walsh [Sat, 15 Feb 2020 16:16:17 +0000 (17:16 +0100)]
luci-app-ksmbd: update for 3.2.1 version (usmbd -> ksmbd.mountd)

* update for 3.2.1 version (usmbd -> ksmbd.mountd)

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
4 years agoMerge pull request #3621 from Andy2244/luci-app-samba4_new-UCI-(19.07)
Florian Eckert [Sat, 15 Feb 2020 16:04:46 +0000 (17:04 +0100)]
Merge pull request #3621 from Andy2244/luci-app-samba4_new-UCI-(19.07)

[19.07] luci-app-samba4: add support for new UCI option

4 years agoluci-app-samba4: add support for new UCI option 3621/head
Andy Walsh [Mon, 10 Feb 2020 14:08:52 +0000 (15:08 +0100)]
luci-app-samba4: add support for new UCI option

* add support for new UCI option "allow_legacy_protocols"

Signed-off-by: Andy Walsh <andy.walsh44+github@gmail.com>
4 years agoluci-base: cbi.js: avoid double-initialization of dropdowns
Jo-Philipp Wich [Fri, 14 Feb 2020 07:43:28 +0000 (08:43 +0100)]
luci-base: cbi.js: avoid double-initialization of dropdowns

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9ae1f478960f9587e8123e61e1a2221e866da26b)

4 years agoluci-base: luci.js: L.dom.data(): gracefully handle non-node argument
Jo-Philipp Wich [Fri, 14 Feb 2020 07:40:15 +0000 (08:40 +0100)]
luci-base: luci.js: L.dom.data(): gracefully handle non-node argument

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 308215ca156212ad2a632b31179c2284a59a8556)

4 years agotreewide: merge master translation updates
Jo-Philipp Wich [Fri, 14 Feb 2020 07:27:50 +0000 (08:27 +0100)]
treewide: merge master translation updates

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
4 years agoluci-base: form.js: pass section_id to Button onclick handler
Jo-Philipp Wich [Wed, 12 Feb 2020 21:21:29 +0000 (22:21 +0100)]
luci-base: form.js: pass section_id to Button onclick handler

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c1aeb300f6976086e48dd90aac1504f38b73cdf9)

4 years agoluci-base: form.js: ButtonValue: pass sid as first onclick argument
Jo-Philipp Wich [Wed, 12 Feb 2020 17:31:36 +0000 (18:31 +0100)]
luci-base: form.js: ButtonValue: pass sid as first onclick argument

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 311bcd4b5cb9f630e41f4fc5e08a6993fddc289a)

4 years agorpcd-mod-luci: honour dhcp leases without ip address for host hints
Jo-Philipp Wich [Wed, 12 Feb 2020 21:22:05 +0000 (22:22 +0100)]
rpcd-mod-luci: honour dhcp leases without ip address for host hints

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 3702e13f544a0b5478d8e0bacd8b28fe55709a57)

4 years agoluci-base: extend rollback timeout to 90 seconds
Jo-Philipp Wich [Thu, 13 Feb 2020 18:25:56 +0000 (19:25 +0100)]
luci-base: extend rollback timeout to 90 seconds

Ref: #3628
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 81cf99a50706a75a2259296e4aab3f7b3bf5d54e)

4 years agoluci-lib-ip: explicitly clear scope when allocating new userdata
Jo-Philipp Wich [Sat, 8 Feb 2020 10:00:54 +0000 (11:00 +0100)]
luci-lib-ip: explicitly clear scope when allocating new userdata

Fixes: #3609
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit c2eeb09bd99b03eead837d8dbfb3f0d8046ccc65)

4 years agoluci-base: validation.js: fix integer and float type validation
Jo-Philipp Wich [Fri, 31 Jan 2020 16:26:39 +0000 (17:26 +0100)]
luci-base: validation.js: fix integer and float type validation

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 187bef9f6ce1263da21f72e91f79192847273ba7)

4 years agoluci-mod-network: dhcp.js: fix resolvefile option depends
Jo-Philipp Wich [Fri, 31 Jan 2020 10:19:09 +0000 (11:19 +0100)]
luci-mod-network: dhcp.js: fix resolvefile option depends

Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d15363408d263fccae90b3b7ab0ebac6329eebb)

4 years agoluci-app-advanced-reboot: fix faulty ip.new() invocation
Jo-Philipp Wich [Thu, 30 Jan 2020 07:32:16 +0000 (08:32 +0100)]
luci-app-advanced-reboot: fix faulty ip.new() invocation

Ref: https://github.com/openwrt/luci/issues/3587#issuecomment-580044459
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6638de5f626a639169ee354bd4d1e99747c8a1c4)

4 years agotreewide: switch to bcp47 language codes
Jo-Philipp Wich [Wed, 29 Jan 2020 12:37:46 +0000 (13:37 +0100)]
treewide: switch to bcp47 language codes

Fixes: #3477
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit 48749ca873a5ba385dc372a6a57738024cc2acfb)

4 years agoluci-app-advanced-reboot: properly handle multiple or missing lan IPs
Jo-Philipp Wich [Wed, 29 Jan 2020 08:37:43 +0000 (09:37 +0100)]
luci-app-advanced-reboot: properly handle multiple or missing lan IPs

Fixes: #3587
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0a07d53594b1b9152ea87e4be7366cc91ad36cc1)

4 years agoluci-base: add another magic security attribute to the sysauth cookie
Jo-Philipp Wich [Wed, 29 Jan 2020 08:07:51 +0000 (09:07 +0100)]
luci-base: add another magic security attribute to the sysauth cookie

Fixes: #3585
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 885c97da535c0c77d79e53391de5c37f2704e01a)

4 years agoluci-mod-system: fix zram compression placeholder
Jo-Philipp Wich [Wed, 29 Jan 2020 08:00:57 +0000 (09:00 +0100)]
luci-mod-system: fix zram compression placeholder

Fixes: #3583
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit b8f65c340c42acda920298af4318784a79a0965c)

4 years agoluci-base: make swconfig port state parsing more robust
Jo-Philipp Wich [Tue, 28 Jan 2020 17:14:28 +0000 (18:14 +0100)]
luci-base: make swconfig port state parsing more robust

Since swconfig output varies wildly among different switch drivers, rely
on a simpler more robust parsing approach to find the required information.

Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 6d59a6400ed055d71e0b335679d291c22bbdbd40)

4 years agoluci-mod-network: handle missing switch port state information
Jo-Philipp Wich [Tue, 28 Jan 2020 09:08:40 +0000 (10:08 +0100)]
luci-mod-network: handle missing switch port state information

Ref: https://github.com/openwrt/luci/issues/3565
Ref: https://forum.openwrt.org/t/cannot-read-property-link/50766
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 616d44c155ae2b4f19e8b2645744a107e38a56c7)

4 years agotreewide: sync and merge master translations
Jo-Philipp Wich [Wed, 29 Jan 2020 07:47:34 +0000 (08:47 +0100)]
treewide: sync and merge master translations

Signed-off-by: Jo-Philipp Wich <jo@mein.io>