@@ -4,8 +4,6 @@ |
||
4 | 4 | namespace SamIT\Proxy; |
5 | 5 | |
6 | 6 | |
7 | -use React\Dns\Resolver\Factory; |
|
8 | -use React\Dns\Resolver\Resolver; |
|
9 | 7 | use React\EventLoop\LoopInterface; |
10 | 8 | use React\Socket\Connection; |
11 | 9 |
@@ -56,7 +56,7 @@ |
||
56 | 56 | public function forwardAll(ServerInterface $server, $forwardAddress, $forwardPort) |
57 | 57 | { |
58 | 58 | $server->on('connection', function(ConnectionInterface $connection) use ($forwardAddress, $forwardPort) { |
59 | - $this->forward($connection, $forwardAddress, $forwardPort); |
|
59 | + $this->forward($connection, $forwardAddress, $forwardPort); |
|
60 | 60 | }); |
61 | 61 | } |
62 | 62 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace SamIT\Proxy; |
4 | 4 | |
5 | 5 | use React\Promise\Promise; |
6 | -use React\Socket\Connection; |
|
7 | 6 | use React\Socket\ConnectionInterface; |
8 | 7 | use React\Socket\ServerInterface; |
9 | 8 | use React\SocketClient\TcpConnector; |