���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules
/
ioredis
/
built
/
connectors
/
SentinelConnector
/
Viewing: SentinelIterator.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isSentinelEql(a, b) { return ((a.host || "127.0.0.1") === (b.host || "127.0.0.1") && (a.port || 26379) === (b.port || 26379)); } class SentinelIterator { constructor(sentinels) { this.cursor = 0; this.sentinels = sentinels.slice(0); } next() { const done = this.cursor >= this.sentinels.length; return { done, value: done ? undefined : this.sentinels[this.cursor++] }; } reset(moveCurrentEndpointToFirst) { if (moveCurrentEndpointToFirst && this.sentinels.length > 1 && this.cursor !== 1) { this.sentinels.unshift(...this.sentinels.splice(this.cursor - 1)); } this.cursor = 0; } add(sentinel) { for (let i = 0; i < this.sentinels.length; i++) { if (isSentinelEql(sentinel, this.sentinels[i])) { return false; } } this.sentinels.push(sentinel); return true; } toString() { return `${JSON.stringify(this.sentinels)} @${this.cursor}`; } } exports.default = SentinelIterator;
Coded With 💗 by
0x6ick Mod By V1rus_Alfa