summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ddns/luasrc
AgeCommit message (Collapse)Author
2018-09-02luci-app-ddns: various fixAnsuel Smith
Rework overview page, sync with new style and simplify the code by removing unnecessary check. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-08-02luci-app-ddns: fix huge typo in luasrc/tools/ddns.luayangfl
Signed-off-by: David Yang <mmyangfl@gmail.com>
2018-06-11luci-app-ddns: use standard pkg info functionAnsuel Smith
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-07luci-app-ddns: fix div conversionAnsuel Smith
This fix some error from conversion of #1854 Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
2018-06-05luci-app-ddns: Convert HTML tables to divjollaman999
2018-06-04luci-app-ddns: make param opt, optional, add myself as maintainerAnsuel Smith
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-02luci-app-ddns: improve performanceAnsuel Smith
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-05-16luci-app-ddns: fix HTML page rendering in globals sectionHelge Mader
Signed-off-by: Helge Mader <ma@dev.tdt.de>
2018-04-28luci-app-ddns: fix typo: CRTL should be CTRLfy1128
Reference to https://github.com/openwrt/luci/pull/1756 cherry picked from commit d9cd43fee1d9e0b01c91e569820ba83120d8840b Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2018-04-05treewide: filter shell arguments through shellquote() where applicableJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-01-27luci.app-ddns: Update to 2.4.9-1Christian Schoenebeck
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>
2017-04-26luci-app-ddns: fix to correct system statusChristian Schoenebeck
preset network "wan", if not configured in ddns config to correct display system status #1117 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-12-10Merge pull request #663 from NeoRaider/styleable-checkboxesDaniel Dickinson
luci-base: view: make checkboxes and radio buttons styleable
2016-12-04luci-app-ddns: update to support ddns-scripts 2.7.6Christian Schoenebeck
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-09-25luci-app-ddns: correct required ddns-script versionChristian Schoenebeck
Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-09-25luci-app-ddns: ignore if name lookup progs not supporting force ip versionChristian Schoenebeck
- 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-06-18luci-app-ddns: - fix handling of parameter "is_glue" and "dns_seerver"Christian Schoenebeck
- 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-12luci-app-ddns: pass the is_glue option value to the helperMathias Kresin
Signed-off-by: Mathias Kresin <dev@kresin.me>
2016-05-08luci-app-ddns: adapt to support khost (Knot DNS) and drill (ddns-scripts 2.7.1)Christian Schoenebeck
adapt to support khost (Knot DNS) and drill (ddns-scripts 2.7.1) Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-04-09fix problem not correctly handling "Bind Network" fieldChristian Schoenebeck
- fix problem not correctly handling "Bind Network" field #699 - some german translation extensions Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-03-29applications/luci-app-ddns: Fix typos (found by codespell)Stefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2016-03-07luci-app-ddns: fixes because uclient-fetch support "force ip version"Christian Schoenebeck
- 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-03luci-base: view: make checkboxes and radio buttons styleableMatthias Schiffer
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-02-06luci-app-ddns: some fixesChristian Schoenebeck
- 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-01-30luci-app-ddns: bump to version 2.4.0-1Christian Schöenebeck
- 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>
2015-12-31luci-app-ddns: removing unneeded assertChristian Schoenebeck
- 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-11-15luci-app-ddns: rollup to 2.3.0 to reflect changes on ddns-scriptsChristian Schoenebeck
- 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-10-20luci-app-ddns: protect start/stop actions with csrf tokenJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-12luci-app-ddns: fix typo in previous commitJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-12luci-app-ddns: remove title <a> hacksJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-07Globally replace luci.dispatcher.build_url(...) with url(...) invocationsJo-Philipp Wich
Also concat multiple string arguments into one while we're at it. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-05-24luci-app-ddns: fixed version checkChristian Schoenebeck
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-12luci-app-ddns: reflect changes on ddns-scriptsChristian Schoenebeck
* 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-03-20luci-app-ddns: fix errors in global.luaChristian Schoenebeck
fix dispatcher and validation errors in global.lua Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-03-01luci-app-ddns: patches for #298 #334 #335Christian Schoenebeck
* 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-02-10luci-app-ddns: update to version 2.2.0-1Christian Schoenebeck
- 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-01-18luci-app-ddns: Update to version 2.1.1-0Christian Schoenebeck
- 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-16Update my email addresses in the license headersJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-16Globally reduce copyright headersJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-11luci-app-ddns: adaption to new luci structure and cleanupChristian Schoenebeck
- adaption to LuCI's new directory structure on github - adaption to LuCI's new Makefile optional settings - remove CHANGELOG from github - directory structure cleanup not all patches of 2.1.0-3 and before were applied to new directory structure Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-01-08Rework LuCI build systemJo-Philipp Wich
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>