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>
This commit is contained in:
parent
75c9670bf8
commit
77ea7c8c7e
1 changed files with 11 additions and 1 deletions
|
@ -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.placeholder = "51820"
|
||||||
listen_port.optional = true
|
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 --------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue