oweals/luci.git
7 years agoluci-app-statistics: remove non-functional links from graphs
Hannu Nyman [Mon, 13 Feb 2017 17:05:35 +0000 (19:05 +0200)]
luci-app-statistics: remove non-functional links from graphs

The statistics graphs on the pages with multiple data sources
have contained links to the data sources, but those links
have not worked. Remove the links as they are unnecessary.

This commit fixes #1006

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoMerge pull request #1004 from kdarbyshirebryant/miniupnpluci
Hannu Nyman [Mon, 13 Feb 2017 08:30:13 +0000 (10:30 +0200)]
Merge pull request #1004 from kdarbyshirebryant/miniupnpluci

luci-app-miniupnpd: restore missing luci install file

7 years agoMerge pull request #1002 from EricLuehrsen/unbound_uci_defaults
Hannu Nyman [Sun, 12 Feb 2017 08:41:17 +0000 (10:41 +0200)]
Merge pull request #1002 from EricLuehrsen/unbound_uci_defaults

unbound: add uci-default script

7 years agoMerge pull request #1003 from stangri/luci-app-vpnbypass
Hannu Nyman [Sun, 12 Feb 2017 08:19:00 +0000 (10:19 +0200)]
Merge pull request #1003 from stangri/luci-app-vpnbypass

luci-app-vpnbypass: makefile fix & controller fix

7 years agounbound: add uci-default script 1002/head
Eric Luehrsen [Sat, 11 Feb 2017 21:57:15 +0000 (16:57 -0500)]
unbound: add uci-default script

Also if unbound-control is installed, then configure so
luci-app-commands can quickly show the "local zones" and
"local data" (aka hosts). This helps diagnose DHCP-DNS
zone data and adblock zone data.

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
7 years agoluci-app-vpnbypass: makefile fix & controller fix 1003/head
Stan Grishin [Thu, 26 Jan 2017 22:54:48 +0000 (14:54 -0800)]
luci-app-vpnbypass: makefile fix & controller fix

Signed-off-by: Stan Grishin <stangri@melmac.net>
7 years agoluci-app-miniupnpd: restore missing luci install file 1004/head
Kevin Darbyshire-Bryant [Sat, 11 Feb 2017 19:41:31 +0000 (19:41 +0000)]
luci-app-miniupnpd: restore missing luci install file

Restore luci indexcache handling incorrect removed in
https://github.com/openwrt/luci/commit/387a06bb73462312c075e53ce9e6002d4af09e92

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoMerge pull request #1001 from kdarbyshirebryant/minidlna
Hannu Nyman [Sat, 11 Feb 2017 18:54:01 +0000 (20:54 +0200)]
Merge pull request #1001 from kdarbyshirebryant/minidlna

luci-app-minidlna: permit minidlna after sysupgrade

7 years agoluci-app-minidlna: permit minidlna after sysupgrade 1001/head
Kevin Darbyshire-Bryant [Tue, 24 Jan 2017 20:27:38 +0000 (20:27 +0000)]
luci-app-minidlna: permit minidlna after sysupgrade

Do not disable minidlna after sysupgrade, rather trust the config
enabled status in /etc/config/minidlna.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoMerge pull request #1000 from EricLuehrsen/luci_rt_con_cc1
Hannu Nyman [Sat, 11 Feb 2017 07:52:49 +0000 (09:52 +0200)]
Merge pull request #1000 from EricLuehrsen/luci_rt_con_cc1

luci: ignore '::1' in realtime connections

7 years agoluci: ignore '::1' in realtime connections 1000/head
Eric Luehrsen [Sat, 11 Feb 2017 02:38:00 +0000 (21:38 -0500)]
luci: ignore '::1' in realtime connections

luci ignores only 127.0.0.1 in real time connections.
The dnsmasq.init script sets up resolv.conf(s) as such.
With alternate DNS servers configured 'localhost' will
resolve to '127.0.0.1' or '::1'. The connections graph
will spam itself. openwrt/luci#996

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
7 years agoMerge pull request #999 from musashino205/base-upd-ja
Hannu Nyman [Fri, 10 Feb 2017 18:38:36 +0000 (20:38 +0200)]
Merge pull request #999 from musashino205/base-upd-ja

luci-base: Update Japanese translation

7 years agoluci-base: Update Japanese translation 999/head
INAGAKI Hiroshi [Fri, 10 Feb 2017 18:30:17 +0000 (03:30 +0900)]
luci-base: Update Japanese translation

Added some Japanese translations of recently added strings.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-base: Sync translations
INAGAKI Hiroshi [Fri, 10 Feb 2017 17:45:32 +0000 (02:45 +0900)]
luci-base: Sync translations

Synchronized translations with Lua sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-mod-admin-full: tweak 80211w options
Hannu Nyman [Fri, 10 Feb 2017 13:07:17 +0000 (15:07 +0200)]
luci-mod-admin-full: tweak 80211w options

Use ListValue type and enable translation of the option values.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoremote-update: remove ancient non-maintained package
Hannu Nyman [Fri, 10 Feb 2017 09:21:01 +0000 (11:21 +0200)]
remote-update: remove ancient non-maintained package

Remove the ancient 'remote-update' package that has not been
updated for years. It e.g. references two non-existing targets.

Reference to discussion in #995

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-mod-admin-full: add support for 802.11w options
Hannu Nyman [Thu, 9 Feb 2017 19:35:24 +0000 (21:35 +0200)]
luci-mod-admin-full: add support for 802.11w options

Add support for IEEE802.11w Management Frame Protection options.

Mention in the help text that the full version of wpad/hostapd is
needed.

Currently supported by ath9k and ath10k, and in LEDE also by
mwlwifi and mt76.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-mod-admin-full: add validation to more 802.11r options
Hannu Nyman [Thu, 9 Feb 2017 15:01:44 +0000 (17:01 +0200)]
luci-mod-admin-full: add validation to more 802.11r options

Apply hexstring datatype to mobility domain and r1_key_holder.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-base: add hexstring datatype
Hannu Nyman [Thu, 9 Feb 2017 14:58:07 +0000 (16:58 +0200)]
luci-base: add hexstring datatype

Add datatype 'hexstring' for input validaiton datatypes.

It will accept any hexadecimal string.

(no length validation, as rangelength can be used for that.)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-mod-admin-full: improve 802.11r support
Hannu Nyman [Thu, 9 Feb 2017 12:49:08 +0000 (14:49 +0200)]
luci-mod-admin-full: improve 802.11r support

* Add WPA/WPA2-PSK mixed mode to the list of allowed modes
* Add datatype validation to some fields
* Add help texts
* Reformat longest lines

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoAdd support for 802.11r fast transition to wireless config
muddyfeet [Thu, 9 Feb 2017 09:18:36 +0000 (09:18 +0000)]
Add support for 802.11r fast transition to wireless config

Adds support for 802.11r fast transition to luci.
Corrects the deletion on nasid in issue #844

The R0KH & R1KH options are not perfect as it would be better
to separate out each option and do some sanity checking on
the values, but that is beyond my capabilities.

Signed-off-by: Warren Linton warren@linton.id.au
(squashed from three original commits in #994. commit message reworded)

7 years agoluci-mod-admin-full: prevent accidental deletion of 802.11r nasid
Hannu Nyman [Thu, 9 Feb 2017 08:02:49 +0000 (10:02 +0200)]
luci-mod-admin-full: prevent accidental deletion of 802.11r nasid

The same wifi option 'nasid' is used for two purposes,
RADIUS NAS ID and 802.11r NAS ID / R0KH-ID.

In LuCI the 'nasid' option has depended on WPA-EAP/WPA2-EAP, which
can lead to accidental deletion of the option, if the user modifies
any wifi settings while he has WPA(2)-PSK & 802.11r mode.

802.11r can also be with WPA(2)-PSK, so add them to the dependency
list of allowed encryptions.

(Note: after this fix the 'nasid' field is shown unnecessarily
to "normal" WPA(2)-PSK users. It might later be set to depend on
802.11r being used, after 802.11r has been added to LuCI.)

Reference to bugs:
https://github.com/openwrt/luci/issues/844
https://dev.openwrt.org/ticket/20764
https://bugs.lede-project.org/index.php?do=details&task_id=274

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoMerge pull request #965 from cshore-firmware/pull-request-odhcpd-mac
Daniel Dickinson [Tue, 7 Feb 2017 21:00:09 +0000 (16:00 -0500)]
Merge pull request #965 from cshore-firmware/pull-request-odhcpd-mac

base: status: For odhpcd leases display MAC formatted with colons

7 years agoMerge pull request #798 from thoto/feature_lstat
Daniel Dickinson [Tue, 7 Feb 2017 20:56:02 +0000 (15:56 -0500)]
Merge pull request #798 from thoto/feature_lstat

luci-lib-nixio: nixio_lstat calls stat instead of lstat

7 years agoluci-app-wshaper: remove package
Hannu Nyman [Tue, 7 Feb 2017 09:49:10 +0000 (11:49 +0200)]
luci-app-wshaper: remove package

wshaper was removed from the Packages repo
so remove also the corresponding LuCI app.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoMerge pull request #992 from dibdot/master
Hannu Nyman [Sun, 5 Feb 2017 08:33:28 +0000 (10:33 +0200)]
Merge pull request #992 from dibdot/master

luci-app-adblock: put backup options to global section

7 years agoluci-app-adblock: put backup options to global section 992/head
Dirk Brenken [Sun, 5 Feb 2017 07:02:39 +0000 (08:02 +0100)]
luci-app-adblock: put backup options to global section

this PR reflect the changes made in adblock 2.3.0

Signed-off-by: Dirk Brenken <dev@brenken.org>
7 years agoMerge pull request #988 from danrl/proto-wireguard
Hannu Nyman [Fri, 3 Feb 2017 20:16:03 +0000 (22:16 +0200)]
Merge pull request #988 from danrl/proto-wireguard

luci-proto-wireguard: fix wrong maximum MTU

7 years agoluci-proto-wireguard: fix wrong maximum MTU 988/head
danrl [Fri, 3 Feb 2017 20:05:01 +0000 (21:05 +0100)]
luci-proto-wireguard: fix wrong maximum MTU

Signed-off-by: Dan Luedtke <mail@danrl.com>
7 years agoluci-ssl-openssl: use OpenSSL for key generation, drop px5g
Hannu Nyman [Tue, 31 Jan 2017 14:47:12 +0000 (16:47 +0200)]
luci-ssl-openssl: use OpenSSL for key generation, drop px5g

Replace a dependency for px5g with openssl-util. Both LEDE and
Openwrt have now uhttpd versions that can generate keys with
OpenSSL cmd tools if px5g is not found. This change enables an
"OpenSSL-only" version of LuCI without mbedTLS/PolarSSL.

(Note: if px5g is found, uhttpd will prefer that.)

Relevant commits in uhttpd:

LEDE:
https://github.com/lede-project/source/commit/3c4858eeb2bbb3107f87bb3be07d5c172c8e0ef9
https://github.com/lede-project/source/commit/82132540a3efbc98f8f4379b26d4b4541013e69d
https://github.com/lede-project/source/commit/9097dc5ad844c336020be11085e1c8c80390ac9c

Openwrt:
https://github.com/openwrt/openwrt/commit/6ec32832d25335355d205c4601d4a8ca5dfd6808

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-base: fix logic errors in ipmask4 and ipmask6 datatype validators
Jo-Philipp Wich [Mon, 30 Jan 2017 18:14:08 +0000 (19:14 +0100)]
luci-base: fix logic errors in ipmask4 and ipmask6 datatype validators

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-mod-admin-full: fixes for usbport LED triggers
Jo-Philipp Wich [Mon, 30 Jan 2017 14:50:08 +0000 (15:50 +0100)]
luci-mod-admin-full: fixes for usbport LED triggers

The previous commit erroneously used "ports" instead of "port" as name for the
option widget, causing wrong uci values to be written.

Also work around some cbi idiosyncrasies regarding MultiValue widgets which
prevented rendering the correct initial selection state.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoMerge pull request #984 from musashino205/base-upd-ja
Hannu Nyman [Mon, 30 Jan 2017 09:29:11 +0000 (11:29 +0200)]
Merge pull request #984 from musashino205/base-upd-ja

luci-base: Update Japanese translation

7 years agoluci-base: Update Japanese translation 984/head
INAGAKI Hiroshi [Sun, 29 Jan 2017 17:41:25 +0000 (02:41 +0900)]
luci-base: Update Japanese translation

Added and modified some Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-base: Sync translations
INAGAKI Hiroshi [Sun, 29 Jan 2017 16:11:15 +0000 (01:11 +0900)]
luci-base: Sync translations

Synchronized translations with Lua sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoMerge pull request #983 from stangri/luci-app-vpnbypass_makefileFix
Hannu Nyman [Sat, 28 Jan 2017 16:50:36 +0000 (18:50 +0200)]
Merge pull request #983 from stangri/luci-app-vpnbypass_makefileFix

luci-app-vpnbypass: luci tree Makefile + i18n support.

7 years agoluci-app-vpnbypass: switch to luci-tree Makefile, i18n support 983/head
Stan Grishin [Sat, 28 Jan 2017 15:38:05 +0000 (07:38 -0800)]
luci-app-vpnbypass: switch to luci-tree Makefile, i18n support

Signed-off-by: Stan Grishin <stangri@melmac.net>
luci-app-vpnbypass: fixed makefile, fixed pot-file

Signed-off-by: Stan Grishin <stangri@melmac.net>
7 years agoMerge pull request #981 from NvrBst/pull-request-ipv6_prefix_status_display
Jo-Philipp Wich [Sat, 28 Jan 2017 12:45:44 +0000 (13:45 +0100)]
Merge pull request #981 from NvrBst/pull-request-ipv6_prefix_status_display

mod-admin-full: Add IPv6 Prefix Delegation information to Status Pages

7 years agomod-admin-full: Add IPv6 Prefix Delegation information to Status Pages 981/head
Cody R. Brown [Sat, 28 Jan 2017 09:38:06 +0000 (01:38 -0800)]
mod-admin-full: Add IPv6 Prefix Delegation information to Status Pages
The Overview page and Network>Interfaces page currently do not give much information about IPv6, particularly with Prefix Delegated setups. In these setups, ISP will delegate a prefix to the router. Currently LuCI doesn't display this Prefix Delegation from the ISP anywhere. A number of changes was added to this commit:

1) self:_ubus("ipv6-prefix") was extracted and put into protocol.ip6prefix.
2) Network>Interfaces page, if a .ip6prefix is present, show it under Status. (IPv6-PD).
3) On the Overview page, "Type" and "Prefix Delegated" has been added to the IPv6 Network Overview Status:
  - Type will display the .proto, similar to the IPv4 case. If a .ip6prefix is present, it'll display a "-pd" at the end of the Type: i.e. dhcpv6-pd vs. dhcpv6.
  - If no .ip6prefix is present, it'll do what it does currently, and just show Address, or :: if no address is present.
  - If .ip6prefix is present, it'll show the "Prefix Delegated", it'll also hide "Address" if no address is present, else it'll show ifc6.ip6addr as well.

Signed-off-by: Cody R. Brown <dev@codybrown.ca>
7 years agoMerge pull request #979 from musashino205/wol-upd-ja
Hannu Nyman [Fri, 27 Jan 2017 13:32:25 +0000 (15:32 +0200)]
Merge pull request #979 from musashino205/wol-upd-ja

luci-app-wol: Update Japanese translation

7 years agoMerge pull request #977 from stangri/luci-app-vpnbypass
Hannu Nyman [Fri, 27 Jan 2017 13:31:48 +0000 (15:31 +0200)]
Merge pull request #977 from stangri/luci-app-vpnbypass

luci-app-vpnbypass: initial commit of companion app to vpnbypass package

7 years agoluci-app-wol: Update Japanese translation 979/head
INAGAKI Hiroshi [Fri, 27 Jan 2017 12:03:42 +0000 (21:03 +0900)]
luci-app-wol: Update Japanese translation

Added one Japanese translation of recently added string.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-app-wol: Sync translations
INAGAKI Hiroshi [Fri, 27 Jan 2017 10:17:20 +0000 (19:17 +0900)]
luci-app-wol: Sync translations

Synchronized translations with Lua sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-app-wol: add ability to send packet to broadcast address
Hannu Nyman [Fri, 27 Jan 2017 08:36:12 +0000 (10:36 +0200)]
luci-app-wol: add ability to send packet to broadcast address

Add the ability to send the WOL packet to the broadcast address,
if etherwake is used as the wol tool.

Modified from the original idea in #975

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-app-wol: move to services menu
Hannu Nyman [Fri, 27 Jan 2017 08:34:46 +0000 (10:34 +0200)]
luci-app-wol: move to services menu

Move the wake-on-lan app from the network menu to services menu,
where other similar apps are located.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-app-vpnbypass: initial commit of companion app to vpnbypass package 977/head
Stan Grishin [Thu, 26 Jan 2017 22:54:48 +0000 (14:54 -0800)]
luci-app-vpnbypass: initial commit of companion app to vpnbypass package

Signed-off-by: Stan Grishin <stangri@melmac.net>
7 years agoMerge pull request #974 from musashino205/base-upd-ja
Hannu Nyman [Thu, 26 Jan 2017 10:03:08 +0000 (12:03 +0200)]
Merge pull request #974 from musashino205/base-upd-ja

luci-base: Update Japanese translation

7 years agoluci-base: Update Japanese translation 974/head
INAGAKI Hiroshi [Thu, 26 Jan 2017 09:50:51 +0000 (18:50 +0900)]
luci-base: Update Japanese translation

Added and modified some translations for Japanese.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoMerge pull request #973 from musashino205/sync-trans
Hannu Nyman [Thu, 26 Jan 2017 07:43:50 +0000 (09:43 +0200)]
Merge pull request #973 from musashino205/sync-trans

i18n: Sync translations

7 years agoi18n: Sync translations 973/head
INAGAKI Hiroshi [Thu, 26 Jan 2017 03:32:54 +0000 (12:32 +0900)]
i18n: Sync translations

Synchronized translations with Lua sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-mod-admin-full: admin: change password in Map.parse()
Jo-Philipp Wich [Wed, 25 Jan 2017 23:21:17 +0000 (00:21 +0100)]
luci-mod-admin-full: admin: change password in Map.parse()

Move the password setting into the .parse() callback to ensure that it is
updated regardless of whether "Save" or "Save & Apply" has been pressed.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-mod-admin-full: support configuring usbport LED triggers
Jo-Philipp Wich [Wed, 25 Jan 2017 23:08:43 +0000 (00:08 +0100)]
luci-mod-admin-full: support configuring usbport LED triggers

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-base: mvalue: fix column wrapping
Jo-Philipp Wich [Wed, 25 Jan 2017 23:07:26 +0000 (00:07 +0100)]
luci-base: mvalue: fix column wrapping

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-mod-admin-full: reload wifi settings page after changing countey code
Jo-Philipp Wich [Wed, 25 Jan 2017 22:37:40 +0000 (23:37 +0100)]
luci-mod-admin-full: reload wifi settings page after changing countey code

Reloading the page ensures that the allowed tx power values and channel select
lists are properly populated with the new effective values.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-mod-admin-full: allow unset txpower value
Rafał Miłecki [Tue, 3 Jan 2017 14:54:57 +0000 (15:54 +0100)]
luci-mod-admin-full: allow unset txpower value

Sometimes txpower is not set so we should have an option with empty
value to let it stay unset.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoluci-base: datatypes.lua: add missing parentheses in conditional
Jo-Philipp Wich [Tue, 24 Jan 2017 12:51:23 +0000 (13:51 +0100)]
luci-base: datatypes.lua: add missing parentheses in conditional

The missing parens lead to a wrong expression precedence, causing a runtime
error when attempting to compare nil with a number.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoMerge pull request #972 from musashino205/stat-upd-ja
Hannu Nyman [Tue, 24 Jan 2017 06:19:56 +0000 (08:19 +0200)]
Merge pull request #972 from musashino205/stat-upd-ja

luci-app-statistics: Update Japanese translation

7 years agoluci-app-statistics: Update Japanese translation 972/head
INAGAKI Hiroshi [Tue, 24 Jan 2017 06:08:48 +0000 (15:08 +0900)]
luci-app-statistics: Update Japanese translation

Added some Japanese translations and fixed some mistranslations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-app-statistics: Sync translations
INAGAKI Hiroshi [Tue, 24 Jan 2017 05:46:30 +0000 (14:46 +0900)]
luci-app-statistics: Sync translations

Synchronized translation of each language po file and po templates
with Lua source.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoMerge pull request #959 from EricLuehrsen/unbound_odhcpd
Hannu Nyman [Tue, 24 Jan 2017 05:35:48 +0000 (07:35 +0200)]
Merge pull request #959 from EricLuehrsen/unbound_odhcpd

unbound: update UCI for odhcpd and hostname

7 years agounbound: update UCI for odhcpd and hostname 959/head
Eric Luehrsen [Thu, 19 Jan 2017 06:33:44 +0000 (01:33 -0500)]
unbound: update UCI for odhcpd and hostname

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
7 years agoluci-app-statistics: add advice about data directory permissions
Hannu Nyman [Mon, 23 Jan 2017 17:31:40 +0000 (19:31 +0200)]
luci-app-statistics: add advice about data directory permissions

Add advice about the permissions needed for the data directory:

  Pages are rendered as user 'nobody', so the *.rrd files,
  data directory and all its parent directories need to be
  world readable.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-app-firewall: use new ipmask validation types when applicable
Jo-Philipp Wich [Mon, 23 Jan 2017 15:18:20 +0000 (16:18 +0100)]
luci-app-firewall: use new ipmask validation types when applicable

This allows for address specifications like "fdca:1234:0123::abcd/::ffff:ffff:ffff:ffff"
which only match the last 64 bits of an address. This syntax is legal and already supported
by iptables and firewall3.

Fixes https://bugs.lede-project.org/index.php?do=details&task_id=417

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-base: ipmask, ipmask4 and ipmask6 validators
Jo-Philipp Wich [Mon, 23 Jan 2017 15:10:36 +0000 (16:10 +0100)]
luci-base: ipmask, ipmask4 and ipmask6 validators

These validators accept IP address specifications in the form

 - address
 - address/bits
 - address/netmask

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-base: datatypes.lua: cleanup white space
Jo-Philipp Wich [Mon, 23 Jan 2017 15:10:07 +0000 (16:10 +0100)]
luci-base: datatypes.lua: cleanup white space

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoluci-base: luci.tools.status: properly parse infinite dnsmasq leases
Cody R. Brown [Mon, 23 Jan 2017 06:25:44 +0000 (22:25 -0800)]
luci-base: luci.tools.status: properly parse infinite dnsmasq leases

The expiry time in a dnsmasq lease file line may be 0 (i.e.
expiry date = 01/01/1970 00:00:00 GMT) to denote an infinite
lease time, so adjust the code to properly support that.

The expiry attribute of the lease object will be set to "false"
in case of an infinite lease. This is to mimic the odhcp code below.
If the expiry date is not equal to 0, then just do exactly what was
done before (return the os.diff of current time and ts).

Signed-off-by: Cody R. Brown <dev@codybrown.ca>
7 years agoMerge pull request #967 from musashino205/cmd-upd-ja
Hannu Nyman [Sun, 22 Jan 2017 05:49:19 +0000 (07:49 +0200)]
Merge pull request #967 from musashino205/cmd-upd-ja

luci-app-commands: Update Japanese translation

7 years agoluci-app-commands: Update Japanese translation 967/head
INAGAKI Hiroshi [Sat, 21 Jan 2017 09:24:22 +0000 (18:24 +0900)]
luci-app-commands: Update Japanese translation

Added some Japanese translations of recently added strings.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-app-commands: Sync translations
INAGAKI Hiroshi [Sat, 21 Jan 2017 00:35:01 +0000 (09:35 +0900)]
luci-app-commands: Sync translations

Synchronized translation of each languate and po templates with Lua
sources.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoMerge pull request #768 from t123yh/app_commands_nodownload
Daniel Dickinson [Fri, 20 Jan 2017 23:00:42 +0000 (18:00 -0500)]
Merge pull request #768 from t123yh/app_commands_nodownload

luci-app-commands: allow executing without downloading on public links

7 years agobase: status: For odhpcd leases display MAC formatted with colons 965/head
Daniel Dickinson [Fri, 9 Dec 2016 16:58:21 +0000 (11:58 -0500)]
base: status: For odhpcd leases display MAC formatted with colons

This should result in the MAC address display being the same
using odhcpd for v4 DHCP as when using DNSMasq for v4 DHCP.

Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
7 years agoMerge pull request #954 from musashino205/dynpnt-add-ja
Daniel Dickinson [Tue, 17 Jan 2017 03:47:19 +0000 (22:47 -0500)]
Merge pull request #954 from musashino205/dynpnt-add-ja

luci-app-dynapoint: Add Japanese translation

7 years agoluci-app-dynapoint: Add Japanese translation 954/head
INAGAKI Hiroshi [Mon, 16 Jan 2017 18:23:38 +0000 (03:23 +0900)]
luci-app-dynapoint: Add Japanese translation

Added Japanese translations.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoMerge pull request #953 from musashino205/mount-fix-disp
Daniel Dickinson [Mon, 16 Jan 2017 15:45:20 +0000 (10:45 -0500)]
Merge pull request #953 from musashino205/mount-fix-disp

luci-mod-admin-full: Fix display problems of mount

7 years agoMerge pull request #947 from danrl/proto-wireguard
Daniel Dickinson [Mon, 16 Jan 2017 14:39:55 +0000 (09:39 -0500)]
Merge pull request #947 from danrl/proto-wireguard

luci-proto-wireguard: enable addressing for tunnel interfaces

7 years agoMerge pull request #817 from ascob/luci-app-dynapoint
Daniel Dickinson [Mon, 16 Jan 2017 14:28:26 +0000 (09:28 -0500)]
Merge pull request #817 from ascob/luci-app-dynapoint

luci-app-dynapoint: new package

7 years agoMerge pull request #917 from aa65535/master
Daniel Dickinson [Mon, 16 Jan 2017 14:26:42 +0000 (09:26 -0500)]
Merge pull request #917 from aa65535/master

luci-base:adjust the code order

7 years agoMerge pull request #946 from chloe-jeong/trunk-ko
Daniel Dickinson [Mon, 16 Jan 2017 07:07:36 +0000 (02:07 -0500)]
Merge pull request #946 from chloe-jeong/trunk-ko

Updates korean languages.

7 years agoMerge pull request #861 from ynezz/master
Daniel Dickinson [Mon, 16 Jan 2017 06:49:21 +0000 (01:49 -0500)]
Merge pull request #861 from ynezz/master

luci-mod-admin-full: Store system time into RTC also

7 years agoMerge pull request #859 from feckert/realtime_wlan
Daniel Dickinson [Mon, 16 Jan 2017 06:42:00 +0000 (01:42 -0500)]
Merge pull request #859 from feckert/realtime_wlan

luci-mod-admin-full: show realtime wlan graph only if iw command is installed

7 years agoluci-base: sync translations 953/head
INAGAKI Hiroshi [Mon, 16 Jan 2017 04:01:17 +0000 (13:01 +0900)]
luci-base: sync translations

Recently a string to be translated were added to Lua source, so
I synchronized po templates and po file of each language with Lua
source.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-mod-admin-full: Fix display problems of mount
INAGAKI Hiroshi [Mon, 16 Jan 2017 03:52:06 +0000 (12:52 +0900)]
luci-mod-admin-full: Fix display problems of mount

Fixed some display problems where the UUID label of the drop down
list does not exist and the positions of other labels are misplaced
in mount settings page.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-app-commands: Allow executing without downloading on public links 768/head
t123yh [Wed, 3 Aug 2016 10:19:04 +0000 (18:19 +0800)]
luci-app-commands: Allow executing without downloading on public links

Signed-off-by: t123yh <t123yh@outlook.com>
7 years agoluci-app-dynapoint: new package 817/head
ascob [Wed, 5 Oct 2016 16:40:07 +0000 (18:40 +0200)]
luci-app-dynapoint: new package

Add luci-app-dynapoint to repo
LuCI Support for DynaPoint
Dynapoint allows dynamic access point creation
and deletion depending on changes of certain network conditions.
More information: https://github.com/thuehn/dynapoint

Signed-off-by: Tobias Ilte <tobias.ilte@campus.tu-berlin.de>
7 years agoMerge pull request #948 from musashino205/wifi-fix-disp
Daniel Dickinson [Sat, 14 Jan 2017 21:06:36 +0000 (16:06 -0500)]
Merge pull request #948 from musashino205/wifi-fix-disp

luci-mod-admin-full: Fix display problem of wifi_add

7 years agoluci-mod-admin-full: Fix display problem of wifi_add 948/head
INAGAKI Hiroshi [Sat, 14 Jan 2017 17:16:33 +0000 (02:16 +0900)]
luci-mod-admin-full: Fix display problem of wifi_add

Fixed an issue where the network name is displayed as "%q" on wlan
connection destination network settings page.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-proto-wireguard: enable addressing for tunnel interfaces 947/head
danrl [Sat, 14 Jan 2017 16:12:36 +0000 (17:12 +0100)]
luci-proto-wireguard: enable addressing for tunnel interfaces

Enable static addresses on WireGuard tunnel interfaces without requiring
an static address interface.

This removes the requirement to use a static address interface on top of a
WireGuard tunnel interface in the majority of cases. In the past, users have
been confused by the current approach and asked for a simpler way to configure
WireGuard interfaces.

Signed-off-by: Dan Luedtke <mail@danrl.com>
7 years agoluci-app-firewall: Updates korean language. 946/head
Weongyo Jeong [Tue, 10 Jan 2017 16:25:06 +0000 (01:25 +0900)]
luci-app-firewall: Updates korean language.

Initial korean language support for luci-app-firewall.

Signed-off-by: Weongyo Jeong <weongyo@gmail.com>
7 years agoluci-base: Updates korean language.
Weongyo Jeong [Thu, 22 Dec 2016 14:18:22 +0000 (23:18 +0900)]
luci-base: Updates korean language.

Signed-off-by: Weongyo Jeong <weongyo@gmail.com>
7 years agoMerge pull request #942 from musashino205/tmate-upd-ja
Daniel Dickinson [Sat, 14 Jan 2017 06:57:34 +0000 (01:57 -0500)]
Merge pull request #942 from musashino205/tmate-upd-ja

luci-app-travelmate: Update Japanese translation

7 years agoMerge pull request #943 from SvenRoederer/patch-1
Daniel Dickinson [Sat, 14 Jan 2017 06:56:08 +0000 (01:56 -0500)]
Merge pull request #943 from SvenRoederer/patch-1

freifunk-common: bump version as of recent changes

7 years agofreifunk-common: bump version as of recent changes 943/head
Sven Roederer [Fri, 13 Jan 2017 22:27:05 +0000 (23:27 +0100)]
freifunk-common: bump version as of recent changes

the updates for olsr-0.9.5 compatibility should have changed the release-number

Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
7 years agoluci-app-travelmate: Update Japanese translation 942/head
INAGAKI Hiroshi [Fri, 13 Jan 2017 18:36:55 +0000 (03:36 +0900)]
luci-app-travelmate: Update Japanese translation

Added some translations of recently added strings.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoluci-app-travelmate: sync translations
INAGAKI Hiroshi [Fri, 13 Jan 2017 18:06:08 +0000 (03:06 +0900)]
luci-app-travelmate: sync translations

Recently several strings to be translated ware added to Lua source, so I updated po templates and japanese po file.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
7 years agoMerge pull request #939 from dibdot/master
Hannu Nyman [Thu, 12 Jan 2017 20:36:10 +0000 (22:36 +0200)]
Merge pull request #939 from dibdot/master

luci-app-travelmate: update gui elements

7 years agoMerge pull request #938 from cshore-firmware/pull-request-statistics-df
Daniel Dickinson [Thu, 12 Jan 2017 15:19:37 +0000 (10:19 -0500)]
Merge pull request #938 from cshore-firmware/pull-request-statistics-df

app-statistics: df: Don't separate disk usage types

7 years agoluci-app-travelmate: update gui elements 939/head
Dirk Brenken [Thu, 12 Jan 2017 13:56:04 +0000 (14:56 +0100)]
luci-app-travelmate: update gui elements

* update gui elements to reflect changes in travelmate 0.3.x

Signed-off-by: Dirk Brenken <dev@brenken.org>
7 years agoi18n: sync translations
Hannu Nyman [Wed, 11 Jan 2017 13:50:46 +0000 (15:50 +0200)]
i18n: sync translations

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoluci-mod-admin-full: fix help text for wifi join options
Hannu Nyman [Wed, 11 Jan 2017 13:31:54 +0000 (15:31 +0200)]
luci-mod-admin-full: fix help text for wifi join options

Clarify the help text in the wifi join dialog.
Reference to #793, #876, #897

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoMerge pull request #933 from musashino205/wifischd-upd-ja
Hannu Nyman [Wed, 11 Jan 2017 08:14:55 +0000 (10:14 +0200)]
Merge pull request #933 from musashino205/wifischd-upd-ja

luci-app-wifischedule: Update Japanese translation