unused var
This commit is contained in:
@@ -27,7 +27,7 @@ class SyncWireguardRules
|
|||||||
$output = $result->getOutput();
|
$output = $result->getOutput();
|
||||||
$commands = collect();
|
$commands = collect();
|
||||||
|
|
||||||
$server->organisation->servers()->where('id', '!=', $server->id)->each(function ($organisationServer) use (&$commands, $output, $server) {
|
$server->organisation->servers()->where('id', '!=', $server->id)->each(function ($organisationServer) use (&$commands, $output) {
|
||||||
if (Str::contains($output, $organisationServer->internal_public_key)) {
|
if (Str::contains($output, $organisationServer->internal_public_key)) {
|
||||||
$commands->push("wg set wg0 peer {$organisationServer->internal_public_key} remove");
|
$commands->push("wg set wg0 peer {$organisationServer->internal_public_key} remove");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user