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
+2 -1
View File
@@ -148,7 +148,8 @@ func (h *ssHandler) Handle(ctx context.Context, conn net.Conn, opts ...handler.H
conn.SetReadDeadline(time.Time{})
log = log.WithFields(map[string]any{
"dst": addr.String(),
"dst": addr.String(),
"host": addr.String(),
})
log.Debugf("%s >> %s", conn.RemoteAddr(), addr)