chore: hy2 listener fellow hysteria2's code skip verify in https masquerade

This commit is contained in:
wwqgtxx
2026-01-25 21:49:02 +08:00
parent e3b8fc2b77
commit 46ee1649c0

View File

@@ -126,6 +126,10 @@ func New(config LC.Hysteria2Server, tunnel C.Tunnel, additions ...inbound.Additi
w.WriteHeader(http.StatusBadGateway)
},
Transport: &http.Transport{
// fellow hysteria2's code skip verify
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true,
},
// from http.DefaultTransport
ForceAttemptHTTP2: true,
MaxIdleConns: 100,