net/wireguard: Make tunneladdress an optional parameter (#2352)

This commit is contained in:
James French
2021-04-30 19:48:10 +02:00
committed by GitHub
parent da4aa10d6f
commit b63964117c
4 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= wireguard
PLUGIN_VERSION= 1.6
PLUGIN_VERSION= 1.7
PLUGIN_COMMENT= WireGuard VPN service
PLUGIN_DEPENDS= wireguard-go wireguard-tools
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -16,6 +16,10 @@ WWW: https://www.wireguard.com/
Changelog
---------
1.7
* Make tunnel address (wg interface address) optional
1.6
* Move DNS setting to advanced
@@ -43,7 +43,7 @@
<tunneladdress type="NetworkField">
<default></default>
<FieldSeparator>,</FieldSeparator>
<Required>Y</Required>
<Required>N</Required>
<asList>Y</asList>
</tunneladdress>
<disableroutes type="BooleanField">
@@ -5,7 +5,9 @@
{% if server_list.enabled == '1' %}
[Interface]
PrivateKey = {{ server_list.privkey }}
{% if server_list.tunneladdress|default('') != '' %}
Address = {{ server_list.tunneladdress }}
{% endif %}
{% if server_list.port|default('') != '' %}
ListenPort = {{ server_list.port }}
{% endif %}