diff --git a/transport/vmess/http.go b/transport/vmess/http.go index 3c15765..74ca682 100644 --- a/transport/vmess/http.go +++ b/transport/vmess/http.go @@ -58,7 +58,7 @@ func (hc *httpConn) Write(b []byte) (int, error) { } 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 { req.Header.Set(key, list[rand.Intn(len(list))]) }