net/wireguard: small style update

This commit is contained in:
Franco Fichtner 2023-09-28 17:07:41 +02:00
parent 9787d50806
commit 415d43cd7f
4 changed files with 5 additions and 6 deletions

View file

@ -18,7 +18,7 @@ Changelog
2.2
* add vhid (carp) tracking support
* Add VHID (CARP) tracking support
2.1

View file

@ -1,3 +1,3 @@
#!/bin/sh
configctl -dq wireguard configure
configctl -dq wireguard configure

View file

@ -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>

View file

@ -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]);