* Returns resolved ips in a round-robin fashion.
()
| 637 | * Returns resolved ips in a round-robin fashion. |
| 638 | */ |
| 639 | getIp() { |
| 640 | if (this._isIp) { |
| 641 | return this._nameOrIp; |
| 642 | } |
| 643 | |
| 644 | const item = this._addresses[this._index % this._addresses.length]; |
| 645 | this._index = (this._index !== maxInt32) ? (this._index + 1) : 0; |
| 646 | |
| 647 | return item; |
| 648 | } |
| 649 | } |
| 650 | |
| 651 | /** |
no outgoing calls
no test coverage detected