diff options
author | Daniel Dickinson <cshoredaniel@users.noreply.github.com> | 2017-01-16 09:39:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-16 09:39:55 -0500 |
commit | be28190838b7390727285a28b80372ca7369202d (patch) | |
tree | 266eeab871fc64d44b470e7cbc397bcc25744be6 | |
parent | 348a6fde90863f003c7735593a29bf8eb2d2086a (diff) | |
parent | 77ea7c8c7e7a30752f361e9ce129a8cff476ea1b (diff) |
Merge pull request #947 from danrl/proto-wireguard
luci-proto-wireguard: enable addressing for tunnel interfaces
-rw-r--r-- | protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua | 12 |
1 files changed, 11 insertions, 1 deletions
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 774c6db22..e58532410 100644 --- 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. @@ -34,6 +34,16 @@ listen_port.datatype = "port" 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 -------------------------------------------------------------------- |