mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
wireguard: if instances are assigned as interfaces we need to reload them
This commit is contained in:
parent
33894fc6a7
commit
b8665c9da0
@ -125,7 +125,7 @@ function wg_start($server, $fhandle, $ifcfgflag = 'up')
|
||||
ftruncate($fhandle, 0);
|
||||
fwrite($fhandle, @md5_file($server->cnfFilename) . "|" . wg_reconfigure_hash($server));
|
||||
syslog(LOG_NOTICE, "wireguard instance {$server->name} ({$server->interface}) started");
|
||||
interfaces_restart_by_device(false, [(string)$server->interface], false);
|
||||
interfaces_restart_by_device(false, [(string)$server->interface], true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user