wireguard: if instances are assigned as interfaces we need to reload them

This commit is contained in:
Franco Fichtner 2024-02-08 17:13:32 +01:00
parent 33894fc6a7
commit b8665c9da0

View File

@ -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);
}
/**