mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/wireguard: Make tunneladdress an optional parameter (#2352)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user