Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
gr3p1p3 committed Apr 24, 2023
1 parent 9a856af commit aca1262
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,12 @@ If no object is returned, then [default keys](https://github.com/gr3p1p3/transpa

If passed a function, the proxy will call it to obtain the TLS secure context instead of using `keys`.

From [tls.createServer](https://nodejs.org/api/tls.html#tlscreateserveroptions-secureconnectionlistener)
Two arguments will be passed when called: servername and callback. callback is an error-first callback that takes two optional arguments: error and ctx. ctx, if provided, is a SecureContext instance. tls.createSecureContext() can be used to get a proper SecureContext. If callback is called with a falsy ctx argument, the default secure context of the server will be used.
From [tls.createServer](https://nodejs.org/api/tls.html#tlscreateserveroptions-secureconnectionlistener) two arguments will be passed when called: servername and callback. Callback is an error-first callback that takes two optional arguments: error and ctx. ctx, if provided, is a SecureContext instance.

tls.createSecureContext() can be used to get a proper SecureContext. If callback is called with a falsy ctx argument, the default secure context of the server will be used.


You can find an example [here](https://github.com/gr3p1p3/transparent-proxy/blob/master/examples/sniCallback.js).

## Session-Instance

Expand Down

0 comments on commit aca1262

Please sign in to comment.