sshClient(); $result = $ssh->execute('wg show wg0'); if (! $result->isSuccessful()) { logger()->error('Failed to retrieve WireGuard rules', [ 'server_id' => $server->id, 'error' => $result->getErrorOutput(), ]); throw new \Exception('Failed to retrieve WireGuard rules'); } } }