Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyertech committed Nov 24, 2022
1 parent 2c4eeb1 commit 4d83389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gontlm-proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func Run() {
//
// Connect Handler
//
var AlwaysMitm goproxy.FuncHttpsHandler = func(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) {
var ConnectHandler goproxy.FuncHttpsHandler = func(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) {
// HTTPSConnect := &goproxy.ConnectAction{
// // ConnectMitm enables SSL Interception, required for request filtering over HTTPS.
// // Action: goproxy.ConnectMitm,
Expand All @@ -256,7 +256,7 @@ func Run() {
// return HTTPSConnect, host
return goproxy.OkConnect, host
}
proxy.OnRequest().HandleConnect(AlwaysMitm)
proxy.OnRequest().HandleConnect(ConnectHandler)

//
// Request Handling
Expand Down

0 comments on commit 4d83389

Please sign in to comment.