()
| 624 | } |
| 625 | |
| 626 | async _resolve() { |
| 627 | const arr = await this._resolve4(this._nameOrIp); |
| 628 | |
| 629 | if (!arr || arr.length === 0) { |
| 630 | throw new Error(`${this._nameOrIp} could not be resolved`); |
| 631 | } |
| 632 | |
| 633 | this._addresses = arr; |
| 634 | } |
| 635 | |
| 636 | /** |
| 637 | * Returns resolved ips in a round-robin fashion. |