Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions src/Statistics/DnsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,12 @@ public function __construct()

public function resolve($domain)
{
return $this->resolveInternal($domain);
return new FulfilledPromise($this->internalIP);
}

public function resolveAll($domain, $type)
{
return $this->resolveInternal($domain, $type);
}

private function resolveInternal($domain, $type = null)
{
return new FulfilledPromise($this->internalIP);
return new FulfilledPromise([$this->internalIP]);
}

public function __toString()
Expand Down