Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit 6617155

Browse files
author
Matt Alberts
committed
create IncidentsLookup with config
1 parent ab35434 commit 6617155

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hack/tunnel.gosrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ func ServeTunnel(
197197
defer func() {
198198
if r := recover(); r != nil {
199199
config.Logger.WithFields(log.Fields{
200-
"trace": debug.Stack(),
200+
"trace": string(debug.Stack()),
201201
}).Errorf("tunnel runtime panic: %v", r)
202202
err = fmt.Errorf("tunnel: %v", r)
203203
recoverable = true

internal/argotunnel/tunnel.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ func newLinkTunnelConfig(rule tunnelRule, cert []byte, options tunnelOptions) *o
226226
RunFromTerminal: false, // bool
227227
NoChunkedEncoding: options.noChunkedEncoding,
228228
CompressionQuality: options.compressionQuality,
229-
CloseConnOnce: &sync.Once{},
229+
IncidentLookup: origin.NewIncidentLookup(),
230+
CloseConnOnce: &sync.Once{},
230231
}
231232
}
232233

0 commit comments

Comments
 (0)