use http.transport for non-connect http tunnel

This commit is contained in:
ginuerzh
2024-10-17 21:57:20 +08:00
parent 7e51404ae5
commit a0cbee8817
15 changed files with 213 additions and 99 deletions
+4 -1
View File
@@ -53,7 +53,10 @@ func (h *httpHandler) parseMetadata(md mdata.Metadata) error {
h.md.header = hd
}
h.md.keepalive = mdutil.GetBool(md, "http.keepalive", "keepalive")
h.md.keepalive = true
if mdutil.IsExists(md, "http.keepalive", "keepalive") {
h.md.keepalive = mdutil.GetBool(md, "http.keepalive", "keepalive")
}
if pr := mdutil.GetString(md, "probeResist", "probe_resist"); pr != "" {
if ss := strings.SplitN(pr, ":", 2); len(ss) == 2 {