net/wireguard: Add config sync (#2282)

This commit is contained in:
Michael
2021-03-16 14:00:56 +01:00
committed by GitHub
parent 25ad1051b6
commit 4a437aa302
3 changed files with 14 additions and 2 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= wireguard
PLUGIN_VERSION= 1.4
PLUGIN_REVISION= 2
PLUGIN_VERSION= 1.5
PLUGIN_COMMENT= WireGuard VPN service
PLUGIN_DEPENDS= wireguard
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -16,6 +16,10 @@ WWW: https://www.wireguard.com/
Changelog
---------
1.5
* Allow synchronization of config
1.4
* Add IPv6 gateway support (contributed by Alexander Korinek)
@@ -68,3 +68,12 @@ function wireguard_interfaces()
$interfaces['wireguard'] = $oic;
return $interfaces;
}
function wireguard_xmlrpc_sync()
{
$result = array();
$result['id'] = 'wireguard';
$result['section'] = 'OPNsense.wireguard';
$result['description'] = gettext('WireGuard');
return array($result);
}