mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
配置更改
This commit is contained in:
parent
278292a51a
commit
5f8df0d581
4
http.go
4
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user