summaryrefslogtreecommitdiffhomepage
path: root/modules
AgeCommit message (Collapse)Author
2017-07-28luci-base: cbi.js: fix handling of inverse-depends, combobox validationJo-Philipp Wich
- Properly handle logic for evaluating inverted dependencies means when depending on another field *not* having a given value - Perform datatype validation *after* populating combobox choices to avoid triggering a false-positive when validating an .rmempty = false combobox during form instantiation Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-28luci-base: let luci.sys.net.devices() return all netdevsJo-Philipp Wich
The previous implementation of the function only returned ethernet interfaces because it relied on the AF_PACKET family entries returned by getifaddrs(). Change the function to simply collect all interface names it sees in order to avoid missing tunnel interfaces. Fixes FS#917. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-28luci-base: Update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-07-27i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-07-24Merge pull request #1239 from kuoruan/zh-cn-trHannu Nyman
Add some translate strings & Update Simplified Chinese translation
2017-07-23Merge pull request #1242 from yousong/shadowsocks-libevHannu Nyman
luci-app-shadowsocks-libev: rewrite for shadowsocks-libev 3.0.6-2
2017-07-23Merge pull request #1221 from Cye3s/masterHannu Nyman
luci_base: Update zh_CN base.po, translate fix
2017-07-23luci-base: Update Simplified Chinese translationkuoruan
Signed-off-by: Hsing-wang Liao <kuoruan@gmail.com>
2017-07-21luci-base: fix loading fold.gif for filebrowserYousong Zhou
cbi_init() needs to be called at the end of the page to initialize cbi_strings with "[data-strings]" while cbi_browser_init() happened before that. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2017-07-11luci-mod-admin-full: use rpcd-mod-rrdns for reverse DNS lookupsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-11luci-base: properly handle authentication without authenticatorJo-Philipp Wich
Some controller actions like the ones in "servicectl" require authentication but are not meant to provide an authenticator because they're only invoked by scripts. Rework the dispatcher logic to handle this situation and only bail out if an authenticator name other than "htmlauth" is set. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-11luci-base: use rpcd-mod-rrdns for reverse DNS lookupsJo-Philipp Wich
Drop the individual calls to nixio.getnameinfo() in luci.sys.net and rely on the "network.rrdns.lookup" ubus call instead to fetch domain information within a guaranteed timeout. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-11luci-base: drop unused functions in luci.sysJo-Philipp Wich
Drop a number of redundant functions from luci.sys to shrink the code a bit: * luci.sys.net.arptable() - replaced by luci.ip.neighbors() * luci.sys.net.routes() - replaced by luci.ip.routes() * luci.sys.net.routes6() - replaced by luci.ip.routes6() * luci.sys.net.deviceinfo() - replaced by nixio.getaddrinfo() * luci.sys.net.pingtest() - no known user Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-11luci-mod-admin-mini: eliminate use of luci.sys.net.deviceinfo()Jo-Philipp Wich
The luci-mod-admin-mini network controller is the only remaining user of the deviceinfo() call so inline the required code there so that the function can be dropped from base LuCI in a later commit. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-11luci-mod-freifunk: eliminate use of luci.sys.net.deviceinfo()Jo-Philipp Wich
The result of the luci.sys.net.deviceinfo() call was never actually used anywhere in the following code, so simply drop the invocation. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-07-09luci-base: use rpcd session loginsJo-Philipp Wich
Drop the custom credentials checking in favor to perform proper session logins via rpcd. This is needed to properly setup ACLs when spawning rpcd sessions in order to support direct client side ubus access in the future. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-06-26Update zh_CN base.poCye3s
Line 3021: msgid "Switch protocol" sould be: msgstr "切换协议" This "Switch protocol" means "Change one protocol to another protocol", Not "protocol of switch deivce"
2017-06-23Merge pull request #1182 from kishangondaliya/feature_xJo-Philipp Wich
luci-mod-admin-full: Enable adhoc mode encryption options
2017-06-20Merge pull request #1194 from TDT-GmbH/add-license-tagsHannu Nyman
Add license tags
2017-06-13luci-base: add license tagFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-06-13luci-mod-rpc: add license tagQuirin Hofstaetter
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
2017-06-13luci-mod-admin-full: add license tagQuirin Hofstaetter
Signed-off-by: Quirin Hofstaetter <qh@dev.tdt.de>
2017-06-05luci-mod-admin-full: Enable adhoc mode encryption optionsKishan Gondaliya
Currently there are only 2 encryption options visible for adhoc mode. But in netifd, others are also supported and working as expected. So adding WPA-PSK, WPA2-PSK and WPA-PSK/WPA2-PSK Mixed mode as encryption options. Signed-off-by: Kishan Gondaliya <kishanpgondaliya@gmail.com>
2017-06-02luci-mod-admin-full: automatically set dns=1 for static leases with hostnameJo-Philipp Wich
Most users likely want the hostname of a static DHCP lease to be resolveable, even if the corresponding host is currently offline. Adjust the form logic to automatically set 'option dns 1' whenever a name is specified in the static lease entry. FIxes LEDE FS#815. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30luci-base: resync translations, update German translationsJo-Philipp Wich
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-30luci-mod-admin-full: use "Lease time" instead of "Leasetime" as translation ↵Jo-Philipp Wich
label This allows sharing a common translation string between DHCP and interface pages. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-29luci-mod-admin-full: auto-migrate ifnames when changing VLAN configurationJo-Philipp Wich
This change extends the switch VLAN configuration page to automatically adjust interface ifname options when altering VLAN settings. For example "eth0" is changed to "eth0.1" when a previously untagged LAN VLAN is switched to tagged on the CPU port and vice versa. Notifications are displayed in the page header if an auto migration was performed. This change should make the switch configuration more user friendly and less prone to soft bricking. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-21luci-base: support ip6ifaceid option for proto_staticHannu Nyman
Add support for 'ip6ifaceid' option for proto_static in LuCI. Information about the option: The option is optional and defaults to '::1'. Allowed values: 'eui64', 'random', fixed value like '::1' or '::1:2' When IPv6 prefix (like 'a:b:c:d::') is received from a delegating server, the ip6ifaceid suffix (like '::1') is used to form the IPv6 address ('a:b:c:d::1') for the interface. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-16Merge pull request #1031 from feckert/add_dhcp_to_system_ucitrackHannu Nyman
luci-base: add dhcp to system ucitrack
2017-05-09i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-08luci-base: add Etc/GMT timezonesHannu Nyman
Add Etc/GMT timezones like GMT+5 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-08luci-mod-admin-full: add advice to restart cronHannu Nyman
Cron init script starts the service only if a crontab file exists. If there is no crontab file at boot and the user later creates one, he needs to manually restart the service. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-05-06luci-base: luci.dispatcher: allow overriding sysauth templateJo-Philipp Wich
In some cases it is useful to be able to override the template used for the sysauth login dialog. Add a new property "sysauth_template" which allows overriding the template name from controller files. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-05-02i18n: Sync translationsINAGAKI Hiroshi
Synchronized translations with sources. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-05-01luci-mod-admin-full: "isolate" option is missing for mac80211fantom-x
Signed-off-by: Marc Benoit marcb6218@gmail.com
2017-04-25luci-mod-admin-full: correct logic for dnsmasq boguspriv keywordmuddyfeet
Prevents deletion of the UCI dns boguspriv keyword and explicitly sets it to either 0 or removes it as the LEDE/Openwrt dnsmasq.conf default is 1 - not 0. This allows boguspriv to be turned off from the GUI. Signed-off-by: Warren Linton <warren@linton.id.au> [Jo-Philipp Wich: squashed commits, updated commit message] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-04-20luci-mod-admin-full: use `nf_conntrack_count` for counting connections (#1114)Jo-Philipp Wich
As suggested by PR #1114, use `/proc/sys/net/netfilter/nf_conntrack_count` instead of counting the lines in `/proc/net/nf_conntrack` but use a slightly more efficient approach which avoids spawning an extra `cat` command. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-04-10timezone data: update to 2017bHannu Nyman
Update timezone data to 2017b. http://mm.icann.org/pipermail/tz-announce/2017-February/000045.html http://mm.icann.org/pipermail/tz-announce/2017-March/000046.html Key changes in 2017a-2017b: * Mongolia no longer observes DST. * Chile's Region of Magallanes moves from -04/-03 to -03 year-round. * Switch to numeric time zone abbreviations for South America, as part of the ongoing project of removing invented abbreviations. * Haiti resumed observance of DST in 2017. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-04-09luci-base: Update Simplified Chinese translationHsing-Wang Liao
Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
2017-04-06Merge pull request #1071 from TDT-GmbH/add-force-link-optionHannu Nyman
luci-mod-admin-full: Add force link option in interfaces advanced settings section
2017-04-03luci-base: Update Japanese translationINAGAKI Hiroshi
Updated Japanese translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-03-31i18n: Sync translationsINAGAKI Hiroshi
Synchronized all translations. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2017-03-15luci-base: update i18nFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-03-14luci-mod-admin-full: add advanced force_link optionFlorian Eckert
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-03-07luci-base: update german translationFlorian Eckert
Added some missing german translations Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2017-03-04i18n: sync translationsHannu Nyman
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-28treewide: cleanup references to madwifi from LuCIHannu Nyman
Remove the code related to the deprecated madwifi driver. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-28luci-mod-admin-full: new hostapd functionality for 80211w/r detectionHannu Nyman
Use the new hostapd functionality (in LEDE) to detect 802.11r and 802.11w more properly. Leave the old logic in place for Openwrt. Adjust 802.11w default value from "0" to "" in order to avoid unnecessary "option ieee80211w 0" lines in /etc/config/wireless Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2017-02-27Merge pull request #1039 from danrl/luci-proto-wireguardHannu Nyman
luci-proto-wireguard: add support for fwmark option
2017-02-27luci-proto-wireguard: add support for fwmark optiondanrl
Adds support for the fwmark option. FwMark is a 32-bit fwmark for outgoing packets. If set to 0 or "off", this option is disabled. Signed-off-by: Dan Luedtke <mail@danrl.com>