Open bozzit opened 4 months ago
I'm not really familiar with the library, but would look for something that bridges Connect
interface to whatever interface Https1TunnelConnector
implements.
Thanks for the reply, I think I got it figured out.
Needed to add
use Amp\Socket\SocketAddress; use Amp\Http\Tunnel\Http1TunnelConnector;
and
$socketConnector = new Http1TunnelConnector(new SocketAddress('10.12.10.18', 3131));
then
->usingPool(new UnlimitedConnectionPool(new DefaultConnectionFactory($socketConnector, (new ConnectContext)->withTlsContext($tlsContext))))
I will attempt to add command line parms --proxy-host and --proxy-port (3131) as a default if I can find time I will contribute back the code via PR later on.
Thanks
I'm pretty sure https://github.com/amphp/http-tunnel/tree/2.x allows for this, but not sure how to implement this in fink.
I added the package with composer, and added the
to lib
DispatcherBuilder.php
and attempted to modify as per the example for http-tunnel example like so:to
But
getting expected type
Amp\Socket\Connect found Amp\Http\Tunnel\Https1TunnelConnector
Probably something simple.Any help would be appreciated
Thankks