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