diff --git a/http.go b/http.go index 4288b8a..0994700 100755 --- a/http.go +++ b/http.go @@ -69,7 +69,9 @@ func EncodeResponse(r *http.Response) ([]byte, error) { raw := bytes.NewBuffer([]byte{}) binary.Write(raw, binary.LittleEndian, []byte("sign")) respBytes, err := httputil.DumpResponse(r, true) - respBytes = replaceHost(respBytes) + if config.Replace == 1 { + respBytes = replaceHost(respBytes) + } if err != nil { return nil, err } diff --git a/json.go b/json.go index 10269b2..1717e77 100755 --- a/json.go +++ b/json.go @@ -23,6 +23,7 @@ type Site struct { type Config struct { Server Server SiteList []Site + Replace int } type JsonStruct struct { }