@@ -4,10 +4,8 @@ |
||
| 4 | 4 | namespace SamIT\Proxy; |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -use React\Dns\Resolver\Factory; |
|
| 8 | 7 | use React\Dns\Resolver\Resolver; |
| 9 | 8 | use React\EventLoop\LoopInterface; |
| 10 | -use React\Socket\Connection; |
|
| 11 | 9 | use React\Stream\Stream; |
| 12 | 10 | |
| 13 | 11 | /** |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | |
| 48 | 48 | $this->forwarder->forward($incoming, $this->forwardAddress, $this->forwardPort)->then(function(Stream $outgoing) use ($incoming) { |
| 49 | 49 | $outgoing->on('init', function() use ($outgoing, $incoming) { |
| 50 | - $this->emit('connection', [$incoming, $this->createConnection($outgoing->stream, false)]); |
|
| 50 | + $this->emit('connection', [$incoming, $this->createConnection($outgoing->stream, false)]); |
|
| 51 | 51 | }); |
| 52 | 52 | }); |
| 53 | 53 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | namespace SamIT\Proxy; |
| 5 | 5 | |
| 6 | 6 | |
| 7 | -use React\Dns\Resolver\Factory; |
|
| 8 | 7 | use React\Dns\Resolver\Resolver; |
| 9 | 8 | use React\EventLoop\LoopInterface; |
| 10 | 9 | |