Support Dnsmasq 2.87-5 feature to filter DNS results:
* remove IPv6 AAAA records and return only IPv4 addresses
* remove IPv4 A records and return only IPv6 addresses
Especially the removal of IPv6 AAAA records can be useful with
ISPs that provide IPv6 address resolving but do not actually
offer IPv6 routing/connectivity.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Currently translated at 98.1% (108 of 110 strings)
Translation: OpenWrt/LuCI/applications/smartdns
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationssmartdns/de/
Translated using Weblate (Portuguese)
Currently translated at 97.4% (115 of 118 strings)
Translation: OpenWrt/LuCI/applications/https-dns-proxy
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationshttps-dns-proxy/pt/
Translated using Weblate (Italian)
Currently translated at 100.0% (14 of 14 strings)
Translated using Weblate (Danish)
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/da/
Translated using Weblate (Italian)
Currently translated at 98.8% (175 of 177 strings)
Translation: OpenWrt/LuCI/applications/adblock
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationsadblock/it/
Translated using Weblate (Italian)
Currently translated at 46.1% (962 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/it/
Added translation using Weblate (Italian)
Translated using Weblate (Russian)
Currently translated at 100.0% (74 of 74 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (58 of 58 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (14 of 14 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/
Added translation using Weblate (Portuguese (Brazil))
Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.3% (40 of 48 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/
Translated using Weblate (Polish)
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/
Translated using Weblate (Norwegian Bokmål)
Currently translated at 36.4% (760 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/nb_NO/
Translated using Weblate (Spanish)
Currently translated at 96.0% (2002 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Anton Kikin <a.a.kikin@gmail.com>
Co-authored-by: Eric <hamburger1024@mailbox.org>
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Co-authored-by: casell <supercasell@gmail.com>
Co-authored-by: drax red <drax@outlook.dk>
Co-authored-by: ssantos <ssantos@web.de>
Signed-off-by: Allan Nordhøy <epost@anotheragency.no>
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Signed-off-by: Eric <hamburger1024@mailbox.org>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Signed-off-by: casell <supercasell@gmail.com>
Signed-off-by: drax red <drax@outlook.dk>
Signed-off-by: ssantos <ssantos@web.de>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci_modules_luci-mod-dsl/it/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci_modules_luci-mod-dsl/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspolipo/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-dashboard/nb_NO/
Translation: OpenWrt/LuCI/applications/polipo
Translation: OpenWrt/LuCI/applications/tinyproxy
Translation: OpenWrt/LuCI/modules/luci-mod-dashboard
Translation: OpenWrt/LuCI/modules/luci-mod-dsl
Some existing legacy code expects the luci.ltn12 namespace to be implicitly
available, even without requiring it beforehand.
Fixes: #6091
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
The uci package name used to iterate the loaded configuration sections
must correspond to the file name being loaded.
Fixes: https://github.com/openwrt/openwrt/issues/11215
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Some legacy Lua controllers declare menu entries by first invoking `node()`
and then setting the `.target` property on the resulting object.
Make sure to properly translate such menu nodes into the internal menu
JSON representation.
Fixes: #6090
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This corrects the option `AllowedIPs` in generated peer configurations,
and allows to customize it via a dropdown list.
Fixes: #5956
Signed-off-by: Julien Cassette <julien.cassette@gmail.com>
[correct fixes tag, slightly adjust option description]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Update the configuration view to refer to the updated `ksmbd.conf`
template file name as well.
Supersedes: #6080
Fixes: f0e0bccfb8 ("luci-app-ksmbd: update menu dependencies")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
The name of the template file changed in the ksmbd package, update the
menu dependencies accordingly to match the changed path.
Signed-off-by: pesa1234 <andreapesaresi82@gmail.com>
[fix commit subject and message]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Some legacy templates access dispatcher functions such as `build_url()`
without explicit scope, which worked in the old runtime since the template
view namespace was instantiated from the dispatcher.
Ensure that this continues to function in the emulated runtime.
Fixes: #6082
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
On legacy views, the `L.ui` JavaScript class is not automatically loaded,
so request it before updating tables.
Fixes: e0e6989a4a ("luci-base: introduce new LuCI.ui.Table class")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Translated using Weblate (Russian)
Currently translated at 100.0% (74 of 74 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (58 of 58 strings)
Translated using Weblate (Russian)
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/ru/
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (14 of 14 strings)
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pt_BR/
Added translation using Weblate (Portuguese (Brazil))
Translated using Weblate (Norwegian Bokmål)
Currently translated at 83.3% (40 of 48 strings)
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/zh_Hans/
Translated using Weblate (Polish)
Currently translated at 100.0% (2084 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/pl/
Translated using Weblate (Norwegian Bokmål)
Currently translated at 36.4% (760 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/nb_NO/
Translated using Weblate (Spanish)
Currently translated at 96.0% (2002 of 2084 strings)
Translation: OpenWrt/LuCI/modules/luci-base
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci/es/
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Anton Kikin <a.a.kikin@gmail.com>
Co-authored-by: Eric <hamburger1024@mailbox.org>
Co-authored-by: Franco Castillo <castillofrancodamian@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Matthaiks <kitynska@gmail.com>
Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Co-authored-by: casell <supercasell@gmail.com>
Signed-off-by: Allan Nordhøy <epost@anotheragency.no>
Signed-off-by: Anton Kikin <a.a.kikin@gmail.com>
Signed-off-by: Eric <hamburger1024@mailbox.org>
Signed-off-by: Franco Castillo <castillofrancodamian@gmail.com>
Signed-off-by: Matthaiks <kitynska@gmail.com>
Signed-off-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/openwrt/luci_modules_luci-mod-dsl/pt_BR/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationspolipo/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/luciapplicationstinyproxy/ru/
Translate-URL: https://hosted.weblate.org/projects/openwrt/lucimodulesluci-mod-dashboard/nb_NO/
Translation: OpenWrt/LuCI/applications/polipo
Translation: OpenWrt/LuCI/applications/tinyproxy
Translation: OpenWrt/LuCI/modules/luci-mod-dashboard
Translation: OpenWrt/LuCI/modules/luci-mod-dsl
Weblate needs at least one language .po file to exist for it
to notice the new component. Just the .pot template is not enough.
Add Spanish manually.
This fixes commit 977c9ac6c that only added the template.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Various existing Lua software is requiring the `luci.http` library for
URL encoding/decoding tasks so ensure that it can be loaded in a stand
alone manner even if the emulated Lua runtime environment is not
available.
Fixes: cea2c3578e ("luci-lib-base: forward luci.http.context.request.message to ucode")
Ref: https://forum.openwrt.org/t/x/141817
Ref: https://github.com/openwrt/luci/pull/5976#issuecomment-1296220586
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Roland Barenbrug <roland@treslong.com>
[replace spcaes with tabs]
[remove not used dsl_cpe_pipe.sh from acl]
[cleanup file naming]
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
The ubus gateway fallback code incorrectly formatted ubus replies
containing no payload data when forwarding them via HTTP, leading
to `TypeError: Unexpected reply data format` errors in at least
the `luci.fs` class when receiving replies without payload.
Fix this issue by ensuring that the result array never contains
a `null` value for the payload, send an one-element array containing
just the status code in this case instead.
Fixes: #6074
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Ensure to first completely render the action function before flushing HTTP
headers since the invoked action logic might modify the HTTP headers itself.
Fixes: e7afd0d327 ("luci-base: fix luci.http.close()")
Ref: e7afd0d327 (commitcomment-88736854)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
In some situations you need to set the compress param without an
algorithm. Compression will be turned off, but the packet framing for
compression will still be enabled, allowing a different setting to be
pushed later.
As it is not possible to have options with optional values at the
moment, I've introduced a pseudo value "frames_only" which will be
removed in the init script.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Ensure that `http.write()` or template rendering operations after a call
to `http.close()` do not produce additional output. This is required for
certain legacy Lua apps which invoke write and close operations in the
middle of a server side cbi rendering process.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Make sure to request loading the Lua bridge as optional when initializing
the Lua VM context from trycompile() in order to not raise a fatal exception
in case the Lua runtime support is not present.
Ref: https://forum.openwrt.org/t/x/141426
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Add menu tree annotations for node readonly and dependency satisfied state
in order to ensure that unreachable menu nodes are hidden from view.
Fixes: ded8ccf93e ("luci-base-ucode: add initial ucode based LuCI runtime")
Ref: https://forum.openwrt.org/t/x/141426/10
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
In case a callback is installed from Lua code, the received callback
argument is not a callable function but a resource object with a call
method. Attempts to call it will leading to a `Type error: left-hand
side is not a function` error.
To solve this issue, invoke the internally set filehandler instead
which wraps the resource if needed.
Fixes: #6067
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Update timezone data to 2022f.
* http://mm.icann.org/pipermail/tz-announce/2022-October/000075.html
- Mexico will no longer observe DST after 2022, except for areas
near the US border that continue to observe US DST rules.
On 2022-10-30 at 02:00 the Mexican state of Chihuahua moves
from -07 (-06 with DST) to year-round -06.
- Fiji will not observe DST in 2022/3.
For now, assume DST is suspended indefinitely.
- Simplify four Ontario zones.
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Adds LuCI GUI for dnsmasq DHCP 'relays'.
The helper functions in dnsmasq/files/dnsmasq.init limit behaviour
whereby it is not possible to omit server_addr, where to omit
it (dnsmasq supported) would result in a broad- or multicast further on.
Tested on 22.03.2
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>