Skip to content

Commit 938dc39

Browse files
committed
Fix regex issue for proxy connections #93
1 parent 25128d1 commit 938dc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iamlivecore/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func createProxy(addr string, awsRedirectHost string) {
183183

184184
proxy := goproxy.NewProxyHttpServer()
185185
proxy.Logger = log.New(io.Discard, "", log.LstdFlags)
186-
proxy.OnRequest(goproxy.ReqHostMatches(regexp.MustCompile(`^(?:.*\.amazonaws\.com(?:\.cn)?)|(?:management\.azure\.com)|(?:management\.core\.windows\.net)|(?:.*\.googleapis\.com)$`))).HandleConnect(goproxy.AlwaysMitm)
186+
proxy.OnRequest(goproxy.ReqHostMatches(regexp.MustCompile(`(?:.*\.amazonaws\.com(?:\.cn)?)|(?:management\.azure\.com)|(?:management\.core\.windows\.net)|(?:.*\.googleapis\.com)`))).HandleConnect(goproxy.AlwaysMitm)
187187
//proxy.OnRequest().HandleConnect(goproxy.AlwaysMitm)
188188
proxy.OnRequest().DoFunc(func(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response) { // TODO: Move to onResponse for HTTP response codes
189189
var body []byte

0 commit comments

Comments
 (0)