File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments