Skip to content

Is there a way to let fink know that it needs to tunnel through a proxy? #131

Description

@bozzit

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

use Amp\Http\Tunnel\Https1TunnelConnector;  

to lib DispatcherBuilder.php and attempted to modify as per the example for http-tunnel example like so:

->usingPool(
  new UnlimitedConnectionPool(
     new DefaultConnectionFactory(null, (new ConnectContext)->withTlsContext($tlsContext))
  )
)

to

$socketConnector = new Https1TunnelConnector(new SocketAddress('2.2.21', 8080));

->usingPool(new UnlimitedConnectionPool(
    new DefaultConnectionFactory($socketConnector),
    (new ConnectContext)->withTlsContext($tlsContext))
))

But

getting expected type Amp\Socket\Connect found Amp\Http\Tunnel\Https1TunnelConnector Probably something simple.

Any help would be appreciated

Thankks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions