Commit graph

52 commits

Author SHA1 Message Date
Florian Eckert
050752a4ae luci-app-ddns: fix package installation link
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2019-01-22 14:43:01 +01:00
Dirk Brenken
c22e5232f4
Merge pull request #2427 from leonghui/fix_has_curlssl_typo
luci-app-ddns: fix typo for has_curlssl()
2019-01-05 22:23:41 +01:00
leonghui
1d93eb808b
luci-app-ddns: remove first grep
Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
2019-01-05 18:49:37 +00:00
Dirk Brenken
a6805ed9fb
Merge pull request #2384 from davidjb/patch-1
luci-app-ddns: check existence of nslookup util rather than making DNS request
2019-01-05 18:01:22 +01:00
leonghui
332d7cff5b
luci-app-ddns: update wiki link for global settings
Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
2019-01-05 11:06:59 +00:00
leonghui
199d4b1d5c
luci-app-ddns: fix typo for has_curlssl()
Fixes the incorrect message "HTTPS not supported please disable !" when curl with https support is present.
grep returns exit code 0 when a match is found.

Signed-off-by: Leong Hui Wong <wong.leonghui@gmail.com>
2019-01-05 10:38:25 +00:00
David Beitey
cfe4ae1668 luci-app-ddns: check existence of nslookup util rather than making DNS request
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>
2018-12-21 12:54:54 +10:00
Florian Eckert
121e7fea66 luci-app-*: use default poll interval
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>
2018-12-20 10:20:23 +01:00
Stefan Weil
ec63339ae5 Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
2018-10-28 22:38:20 +01:00
yangfl
401382a459 treewide: Fix typos in comments
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-10-10 15:00:07 +08:00
Ansuel Smith
8e13fcfbac
luci-app-ddns: fix overview page
Small fix for wrong display of next update data

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-09-19 14:00:43 +02:00
Ansuel Smith
e2d0f6104d
luci-app-ddns: various fix
Rework overview page, sync with new style and simplify the code by removing unnecessary check.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-09-02 14:04:31 +02:00
yangfl
d81c8d0e6b luci-app-ddns: fix huge typo in luasrc/tools/ddns.lua
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-08-02 10:52:34 +08:00
Ansuel Smith
492d4d91b9
luci-app-ddns: use standard pkg info function
DDns script call another sh script to check ddns-scripts version. We can use the quicker IPKG.info function instead of execute another slow command.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-11 17:13:31 +02:00
Ansuel Smith
b46e8c5a69
luci-app-ddns: fix div conversion
This fix some error from conversion of #1854

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-07 21:54:21 +02:00
jollaman999
2d410379c1 luci-app-ddns: Convert HTML tables to div 2018-06-05 10:09:44 +09:00
Ansuel Smith
09c3a8385e
luci-app-ddns: make param opt, optional, add myself as maintainer
Currently these params should be optional but in the current script then are required for any configuration to save. We add an "optional" boolean value to the validate function so that we can make this pram optional as it should be. Also adds me as maintainer

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-04 09:37:05 +02:00
Ansuel Smith
299121fc84
luci-app-ddns: improve performance
Every request directed to the ddns app call ddns tools module.
Ddns tools module have lots of global variable that call slow os.execute function. This adds 10 second to every ddns request even if the function that is requested doesn't need that global variable. This commit introduce env_info function that execute os.execute command by executing what is actually requested and not process all the variables. Also remove 2 unecessary module that are not used. More researh find that major slowdown was caused by the calling of ddns script for the version check. Now we check if opkg is present and use it to check ddns-scripts version.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-02 18:52:22 +02:00
Helge Mader
7a9957e727 luci-app-ddns: fix HTML page rendering in globals section
Signed-off-by: Helge Mader <ma@dev.tdt.de>
2018-05-16 06:45:04 +02:00
fy1128
00d242918f luci-app-ddns: fix typo: CRTL should be CTRL
Reference to https://github.com/openwrt/luci/pull/1756
cherry picked from commit d9cd43fee1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-04-28 08:58:53 +03:00
Jo-Philipp Wich
c0d9c4f3ce treewide: filter shell arguments through shellquote() where applicable
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-04-05 09:37:43 +02:00
Christian Schoenebeck
1cd12c4498 luci.app-ddns: Update to 2.4.9-1
Read registered IP from file, updated by ddns-scripts.
Only read from DNS if file does not exist or outdated (check_interval).
Require ddns-scripts v 2.7.7

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2018-01-27 16:11:07 +01:00
Christian Schoenebeck
3e0492fee9 luci-app-ddns: fix to correct system status
preset network "wan", if not configured in ddns config to correct
display system status #1117

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-04-26 21:54:57 +02:00
Daniel Dickinson
c5287ef15f Merge pull request #663 from NeoRaider/styleable-checkboxes
luci-base: view: make checkboxes and radio buttons styleable
2016-12-10 06:36:01 -05:00
Christian Schoenebeck
475b74b9bf luci-app-ddns: update to support ddns-scripts 2.7.6
needed changes to support ddns-scripts 2.7.6
- new command line options of dynamic_ddns_lucihelper.sh
- renamed global config options
- new location of services files

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-12-04 21:37:17 +01:00
Christian Schoenebeck
a043bca0ed luci-app-ddns: correct required ddns-script version
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-09-25 10:57:29 +02:00
Christian Schoenebeck
2d9472db9f luci-app-ddns: ignore if name lookup progs not supporting force ip version
- no longer verify installed name lookup programs to set has_forceip flag inside tools/ddns.lua
- adapt messages inside hints.lua

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-09-25 10:53:13 +02:00
Christian Schoenebeck
c37eb36207 luci-app-ddns: - fix handling of parameter "is_glue" and "dns_seerver"
- fix handling of parameter "is_glue" and "dns_seerver"
- depends on https://github.com/openwrt/packages/pull/2875

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-06-18 21:58:02 +02:00
Mathias Kresin
59d391b5bd luci-app-ddns: pass the is_glue option value to the helper
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-06-12 12:41:17 +02:00
Christian Schoenebeck
db8bb549aa luci-app-ddns: adapt to support khost (Knot DNS) and drill (ddns-scripts 2.7.1)
adapt to support khost (Knot DNS) and drill (ddns-scripts 2.7.1)

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-05-08 19:26:53 +02:00
Christian Schoenebeck
c2f22c90ac fix problem not correctly handling "Bind Network" field
- fix problem not correctly handling "Bind Network" field #699
- some german translation extensions

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-04-09 19:44:08 +02:00
Stefan Weil
7dbf3644ac applications/luci-app-ddns: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-03-29 09:12:27 +02:00
Christian Schoenebeck
e1fb9e579a luci-app-ddns: fixes because uclient-fetch support "force ip version"
- corrections because uclient-fetch now support "force ip version"
- remove translations already part of base.po/base.pot

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-03-07 10:56:07 +01:00
Matthias Schiffer
4de35274ca luci-base: view: make checkboxes and radio buttons styleable
Add an empty, normally invisible label after checkboxes and radio buttons
with cbi-input-{checkbox,radio} classes to allow CSS styling them as
suggested on http://www.paulund.co.uk/style-checkboxes-with-css

Signed-off-by: Nils Schneider <nils@nilsschneider.net>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-03-03 22:06:39 +01:00
Christian Schoenebeck
e4856c7631 luci-app-ddns: some fixes
- fixes for https://dev.openwrt.org/ticket/21787
- changed detection of BusyBox nslookup compiled with musl, thanks to Arjen de Korte

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-02-06 16:33:59 +01:00
Christian Schöenebeck
7f57a70110 luci-app-ddns: bump to version 2.4.0-1
- fixes for #611 and #620
- adaptions for ddns-scripts 2.6.0
-- add hint for problems with BusyBox nslookup compiled with musl and offer installing hostip package
-- add hint for not installed certificates inside /etc/ssl/certs and offer installing ca-certificates package https://github.com/openwrt/packages/pull/2243
-- check if malfunctional BusyBox nslookup installed, so disable using option dns_server if not Bind host or hostip installed
- optimizations
- cleanup: remove .po files without any translations

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-01-30 19:32:55 +01:00
Christian Schoenebeck
2dd9ccef69 luci-app-ddns: removing unneeded assert
- remove unneeded assert() in tools/ddns.lua
- correct PKG_VERSION to the correct value from controller/ddns.lua

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-12-31 12:14:13 +01:00
Christian Schoenebeck
28d86aeec5 luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scripts
- support for new options "lookup_host", "param_enc" and "param_opt"
- rewritten ddns provider handling to only show/check needed options "domain", "username", etc.
- modified version check/handling incl. using new ipkg.compare_versions function
- modified map.title and map.description generation
- changed XHR.poll interval to 15 seconds on system status page
- using new value_parse function for testing and later implementation into cbi.lua
- some optimizations

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-11-15 11:42:43 +01:00
Jo-Philipp Wich
b9ed03c5a9 luci-app-ddns: protect start/stop actions with csrf token
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-20 23:58:01 +02:00
Jo-Philipp Wich
d1da53512e luci-app-ddns: fix typo in previous commit
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-12 11:14:01 +02:00
Jo-Philipp Wich
49a7c5bd03 luci-app-ddns: remove title <a> hacks
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-12 09:14:49 +02:00
Jo-Philipp Wich
281d2f6178 Globally replace luci.dispatcher.build_url(...) with url(...) invocations
Also concat multiple string arguments into one while we're at it.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-07 19:07:36 +02:00
Christian Schoenebeck
740ce09fb9 luci-app-ddns: fixed version check
fixed version checking in function ipkg_ver_compare()
Reported issue #387 and openwrt/packages issue 1285

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-24 20:03:52 +02:00
Christian Schoenebeck
d3b6c375ce luci-app-ddns: reflect changes on ddns-scripts
* reflect updated language file for zh-cn
* change default for retry_count to 0 compatible to ddns-scripts 2.4.2-1
* addition to retry_count help description
* modified dependency on ddns-scripts 2.4.2-1

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-12 20:31:30 +02:00
Christian Schoenebeck
3902988878 luci-app-ddns: fix errors in global.lua
fix dispatcher and validation errors in global.lua

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-03-20 09:06:11 +01:00
Christian Schoenebeck
df05909723 luci-app-ddns: patches for #298 #334 #335
* remove usage of opkg via system call for version handling
thanks to Jo-Philipp Wich #335
* remove special handling of bootstrap theme #298 #334

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-03-01 20:08:45 +01:00
Christian Schoenebeck
8b0f83264a luci-app-ddns: update to version 2.2.0-1
- implement new option bind_interface
- fixes problems when updating status displays (i.e. showing Software update needed)
- new links to OpenWrt wiki
- new screen to set global settings
- implements global option use_curl

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-10 21:49:57 +01:00
Christian Schoenebeck
819a733df3 luci-app-ddns: Update to version 2.1.1-0
- adaption Makefile to changed luci.mk
- description in Makefile for correct version handling
- modified handling to detect and display installed version
- new functions ipkg_ver_installed() and ipkg_ver_compare
- correct wrong spellings
- modified language template and German translation

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-18 19:22:54 +01:00
Jo-Philipp Wich
41d2b33087 Update my email addresses in the license headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:49:44 +01:00
Jo-Philipp Wich
7a3493b1f7 Globally reduce copyright headers
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16 23:38:38 +01:00