Fix: method in vmess http-opts is not used (#2846)
This commit is contained in:
parent
07ed6e8bef
commit
40bbd3dfdb
@ -58,7 +58,7 @@ func (hc *httpConn) Write(b []byte) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
u := fmt.Sprintf("http://%s%s", host, path)
|
u := fmt.Sprintf("http://%s%s", host, path)
|
||||||
req, _ := http.NewRequest(http.MethodGet, u, bytes.NewBuffer(b))
|
req, _ := http.NewRequest(hc.cfg.Method, u, bytes.NewBuffer(b))
|
||||||
for key, list := range hc.cfg.Headers {
|
for key, list := range hc.cfg.Headers {
|
||||||
req.Header.Set(key, list[rand.Intn(len(list))])
|
req.Header.Set(key, list[rand.Intn(len(list))])
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user