projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
luci-proto-wireguard: use "Optional" instead of "Optional." as translation
[project/luci.git]
/
protocols
/
luci-proto-wireguard
/
luasrc
/
model
/
cbi
/
admin_network
/
proto_wireguard.lua
diff --git
a/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
b/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
index
774c6db
..
d4ab4c3
100644
(file)
--- a/
protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
+++ b/
protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
@@
-1,4
+1,4
@@
--- Copyright 2016 Dan Luedtke <mail@danrl.com>
+-- Copyright 2016
-2017
Dan Luedtke <mail@danrl.com>
-- Licensed to the public under the Apache License 2.0.
-- Licensed to the public under the Apache License 2.0.
@@
-34,6
+34,16
@@
listen_port.datatype = "port"
listen_port.placeholder = "51820"
listen_port.optional = true
listen_port.placeholder = "51820"
listen_port.optional = true
+addresses = section:taboption(
+ "general",
+ DynamicList,
+ "addresses",
+ translate("IP Addresses"),
+ translate("Recommended. IP addresses of the WireGuard interface.")
+)
+addresses.datatype = "ipaddr"
+addresses.optional = true
+
-- advanced --------------------------------------------------------------------
-- advanced --------------------------------------------------------------------
@@
-42,7
+52,7
@@
metric = section:taboption(
Value,
"metric",
translate("Metric"),
Value,
"metric",
translate("Metric"),
- translate("Optional
.
")
+ translate("Optional")
)
metric.datatype = "uinteger"
metric.placeholder = "0"
)
metric.datatype = "uinteger"
metric.placeholder = "0"