Merge pull request #947 from danrl/proto-wireguard
authorDaniel Dickinson <cshoredaniel@users.noreply.github.com>
Mon, 16 Jan 2017 14:39:55 +0000 (09:39 -0500)
committerGitHub <noreply@github.com>
Mon, 16 Jan 2017 14:39:55 +0000 (09:39 -0500)
luci-proto-wireguard: enable addressing for tunnel interfaces

protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua

index 774c6db..e585324 100644 (file)
@@ -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 --------------------------------------------------------------------