net/wireguard: Make endpoint port optional (#2617)

This commit is contained in:
Michael
2021-10-28 12:12:06 +02:00
committed by GitHub
parent 5c73bd2750
commit ff0e665a86
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= wireguard
PLUGIN_VERSION= 1.7
PLUGIN_VERSION= 1.8
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.8
* Empty port in Endpoint is allowed
1.7
* Make tunnel address (wg interface address) optional
@@ -35,8 +35,9 @@ PublicKey = {{ peerlist2_data.pubkey }}
PresharedKey = {{ peerlist2_data.psk }}
{% endif %}
{% if peerlist2_data.serveraddress|default('') != '' %}
Endpoint = {{ peerlist2_data.serveraddress }}:{{ peerlist2_data.serverport }}
Endpoint = {{ peerlist2_data.serveraddress }}{% if peerlist2_data.serverport|default('') != '' %}:{{ peerlist2_data.serverport }}{% else %}:51820{% endif %}
{% endif %}
AllowedIPs = {{ peerlist2_data.tunneladdress }}
{% if peerlist2_data.keepalive|default('') != '' %}
PersistentKeepalive = {{ peerlist2_data.keepalive }}