Skip to content

Commit

Permalink
Fix bug with translation
Browse files Browse the repository at this point in the history
  • Loading branch information
paxal committed Oct 4, 2018
1 parent 4d06330 commit 492b981
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Proxy/DataHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ public function __invoke($data): void
}
$protocol->onClose($this);

$targetHost = $this->translator->translate($protocol->getTargetHost());
error_log("{$request->getUri()} -> {$targetHost}");
(new Connector($this->loop))
->connect($protocol->getTargetHost())
->connect($targetHost)
->then(
$protocol,
function (\Exception $exception) {
Expand Down

0 comments on commit 492b981

Please sign in to comment.