mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/wireguard: small style update
This commit is contained in:
parent
9787d50806
commit
415d43cd7f
4 changed files with 5 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ Changelog
|
|||
|
||||
2.2
|
||||
|
||||
* add vhid (carp) tracking support
|
||||
* Add VHID (CARP) tracking support
|
||||
|
||||
2.1
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
configctl -dq wireguard configure
|
||||
configctl -dq wireguard configure
|
||||
|
|
|
|||
|
|
@ -61,10 +61,9 @@
|
|||
</field>
|
||||
<field>
|
||||
<id>server.carp_depend_on</id>
|
||||
<label>Depend on (carp)</label>
|
||||
<label>Depend on (CARP)</label>
|
||||
<type>dropdown</type>
|
||||
<help>The carp VHID to depend on, when this virtual address is not in master state,
|
||||
the instance will be shutdown.</help>
|
||||
<help>The CARP VHID to depend on. When this virtual address is not in master state, then the instance will be shutdown.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>server.peers</id>
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ function get_vhid_status()
|
|||
/**
|
||||
* mimic wg-quick behaviour, but bound to our config
|
||||
*/
|
||||
function wg_start($server, $fhandle, $ifcfgflag='up')
|
||||
function wg_start($server, $fhandle, $ifcfgflag = 'up')
|
||||
{
|
||||
if (!does_interface_exist($server->interface)) {
|
||||
mwexecf('/sbin/ifconfig wg create name %s', [$server->interface]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue