We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be302bf commit 3a7e6bfCopy full SHA for 3a7e6bf
proxy/proxy.go
@@ -102,6 +102,18 @@ var (
102
errAccessDenied = errors.New("access denied")
103
)
104
105
+func init() {
106
+ // https://github.com/golang/go/issues/71128
107
+ v := os.Getenv("GODEBUG")
108
+ if len(v) > 0 {
109
+ if strings.Contains(v, "http2xconnect=0") {
110
+ return
111
+ }
112
+ v += ","
113
114
+ os.Setenv("GODEBUG", v+"http2xconnect=0")
115
+}
116
+
117
// Proxy receives TLS connections and forwards them to the configured
118
// backends.
119
type Proxy struct {
0 commit comments