This saves a DNS request whenever the check is performed. For systems with nameservers configured in `/etc/resolv.conf`, nslookup will sent a request to those servers (eg bypassing /etc/hosts), thus taking a lot more time than necessary. For servers that are remote, this will take a *lot* longer than just checking if the nslookup util exists.
This change follows in the same vein as all the other checks and just using `which` without actually invoking the util's functionality.
Signed-off-by: David Beitey <david@davidjb.com>
Replace all XHR poll time number with -1 so they will use the default
poll interval time value from "/etc/config/luci". If this is not set then
5 seconds as default is used.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
* add adblock dns query reporting via tcpdump (see readme for details)
* fix tld compression on low memory systems (< 64 MB)
* fix various small issues
Signed-off-by: Dirk Brenken <dev@brenken.org>
According to the package aria2, the log option
is enable_logging, so fix this option name.
As luci-app-aria2 can't set custom log file dir,
the default log file is /var/log/aria2.log but not
in the config file dir.
Signed-off-by: Zheng Qian <sotux82@gmail.com>
* re-add config option comp_lzo according to
openwrt/openwrt@3850b41
* re-add config option comp_noadapt. This has never been removed
from openwrt
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Refactor the named section template shipped with luci-app-radicale to work
with the latest LuCI tabbing changes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
In the openWebUI function, the url is assumed as http protocol,
this will cause problem when we login luci-admin with https.
The variable localhostPath has already contained http/https
protocol, so we can use it directly and add the path of aria2
webUI.
Signed-off-by: Zheng Qian <sotux82@gmail.com>
modify the status tables so that then headers and columns align, values
left justified.
Additionally, add the openwrt style interface name to the interfaces table,
change huge ETX numbers to 'infinate', and add the german translation for
'Selected'.
Signed-off-by: pmelange <isprotejesvalkata@gmail.com>
If a new instance is edit then all boolean option are shown on the LuCI.
This is confusing. To fix this hide all boolean ellements on the config
page which are not enabled by default. They must be add first.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This change will redirect on apply/save to the OpenVPN overview page.
This is the default behaviour on LuCI.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
[ Fixed too wide line lengths with i18n-sync.pl ]
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* fix possible exception in template based ovpn creation
* remove needless shellquote function in controller,
the filename will be checked on client side with JS
* enhance FileUpload behaviour in basic/advanced mode:
- change "auth_user_pass" to FileUpload
- cfg entries (even with default values) will be shown
- existing entries are now removable (incl. file unlink),
simply clear the appropriate textbox
* change "key_direction" option to boolean ListValue
* add "config" option to basic/advanced edit,
to make it possible to change the upload path in LuCI
Signed-off-by: Dirk Brenken <dev@brenken.org>