Skip to content

Commit

Permalink
Merge pull request #131 from ngrok/bob/renegotiate
Browse files Browse the repository at this point in the history
Adds TLS Renegotiation to the backend
  • Loading branch information
bobzilladev authored Oct 20, 2023
2 parents f7291f3 + c315579 commit c266df4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.5.1

- Adds TLS Renegotiation to the backend `tls.Config`.

## 1.5.0

- Added new forwarding API. See `[Session].ListenAndForward` and `[Session].ListenAndServeHTTP`.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.0
1.5.1
5 changes: 4 additions & 1 deletion forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,10 @@ func openBackend(ctx context.Context, logger log15.Logger, tun Tunnel, tunnelCon
// Create TLS config if necessary
var tlsConfig *tls.Config
if usesTLS(url.Scheme) {
tlsConfig = &tls.Config{ServerName: url.Hostname()}
tlsConfig = &tls.Config{
ServerName: url.Hostname(),
Renegotiation: tls.RenegotiateOnceAsClient,
}
}

dialer := &net.Dialer{}
Expand Down

0 comments on commit c266df4

Please sign in to comment.