Skip to content

Conversation

@clue
Copy link
Owner

@clue clue commented Sep 15, 2017

If you need custom connector settings (DNS resolution, TLS parameters, timeouts,
proxy servers etc.), you can explicitly pass a custom instance of the
ConnectorInterface:

$connector = new \React\Socket\Connector($loop, array(
    'dns' => '127.0.0.1',
    'tcp' => array(
        'bindto' => '192.168.10.1:0'
    ),
    'tls' => array(
        'verify_peer' => false,
        'verify_peer_name' => false
    )
));

$browser = new Browser($loop, $connector);

@clue clue added this to the v1.4.0 milestone Sep 15, 2017
@clue clue merged commit 9616f62 into clue:master Sep 15, 2017
@clue clue deleted the sender branch September 15, 2017 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant