@@ -598,10 +598,7 @@ to HTTPS port`443` only, this can technically be used to tunnel any TCP/IP-based
598598protocol, such as plain HTTP and TLS-encrypted HTTPS.
599599
600600``` php
601- $proxy = new Clue\React\HttpProxy\ProxyConnector(
602- 'http://127.0.0.1:8080',
603- new React\Socket\Connector()
604- );
601+ $proxy = new Clue\React\HttpProxy\ProxyConnector('127.0.0.1:8080');
605602
606603$connector = new React\Socket\Connector(array(
607604 'tcp' => $proxy,
@@ -611,7 +608,7 @@ $connector = new React\Socket\Connector(array(
611608$browser = new React\Http\Browser($connector);
612609```
613610
614- See also the [ HTTP CONNECT proxy example] ( examples/11-client-http-connect -proxy.php ) .
611+ See also the [ HTTP proxy example] ( examples/11-client-http-proxy.php ) .
615612
616613### SOCKS proxy
617614
@@ -625,10 +622,7 @@ address (anonymity) or to circumvent address blocking (geoblocking). While many
625622only, this can technically be used to tunnel any TCP/IP-based protocol.
626623
627624``` php
628- $proxy = new Clue\React\Socks\Client(
629- 'socks://127.0.0.1:1080',
630- new React\Socket\Connector()
631- );
625+ $proxy = new Clue\React\Socks\Client('127.0.0.1:1080');
632626
633627$connector = new React\Socket\Connector(array(
634628 'tcp' => $proxy,
@@ -657,7 +651,7 @@ from the outside (database behind firewall) and as such can also be used for
657651plain HTTP and TLS-encrypted HTTPS.
658652
659653``` php
660- $proxy = new Clue\React\SshProxy\SshSocksConnector('me@localhost:22', Loop::get() );
654+ $proxy = new Clue\React\SshProxy\SshSocksConnector('alice@example.com' );
661655
662656$connector = new React\Socket\Connector(array(
663657 'tcp' => $proxy,
0 commit comments