mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
VPN: WireGuard - replace setconf with syncconf in service control for more fluent reloading. (https://github.com/opnsense/plugins/pull/3358)
This commit is contained in:
parent
b25ea1c4b8
commit
08fa5350bc
@ -67,7 +67,7 @@ function wg_start($server, $fhandle, $ifcfgflag = 'up')
|
||||
mwexecf('/sbin/ifconfig wg create name %s', [$server->interface]);
|
||||
mwexecf('/sbin/ifconfig %s group wireguard', [$server->interface]);
|
||||
}
|
||||
mwexecf('/usr/bin/wg setconf %s %s', [$server->interface, $server->cnfFilename]);
|
||||
mwexecf('/usr/bin/wg syncconf %s %s', [$server->interface, $server->cnfFilename]);
|
||||
|
||||
/* The tunneladdress can be empty, so array_filter without callback filters empty strings out. */
|
||||
foreach (array_filter(explode(',', (string)$server->tunneladdress)) as $alias) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user