Skip to content

Commit bc2b263

Browse files
committed
Revert subdomain change #62
1 parent 56a5487 commit bc2b263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iamlivecore/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func createProxy(addr string) {
156156
proxy.OnRequest().DoFunc(func(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response) { // TODO: Move to onResponse for HTTP response codes
157157
body, _ := ioutil.ReadAll(req.Body)
158158

159-
isAWSHostname, _ := regexp.MatchString(`^[^.]*\.amazonaws\.com(?:\.cn)?$`, req.Host)
159+
isAWSHostname, _ := regexp.MatchString(`^.*\.amazonaws\.com(?:\.cn)?$`, req.Host)
160160
if isAWSHostname {
161161
handleAWSRequest(req, body, 200)
162162
}

0 commit comments

Comments
 (0)