Skip to content

Commit

Permalink
cmd/cli: disable quic-go's ECN support by default
Browse files Browse the repository at this point in the history
It may cause issues on some OS-es.

See: quic-go/quic-go#3911
  • Loading branch information
cuonglm committed Mar 25, 2024
1 parent 13db235 commit 07f80c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/cli/prog_linux.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cli

import (
"os"

"github.com/kardianos/service"

"github.com/Control-D-Inc/ctrld/internal/dns"
Expand All @@ -10,6 +12,10 @@ func init() {
if r, err := dns.NewOSConfigurator(func(format string, args ...any) {}, "lo"); err == nil {
useSystemdResolved = r.Mode() == "systemd-resolved"
}
// Disable quic-go's ECN support by default, see https://github.com/quic-go/quic-go/issues/3911
if os.Getenv("QUIC_GO_DISABLE_ECN") == "" {
os.Setenv("QUIC_GO_DISABLE_ECN", "true")
}
}

func setDependencies(svc *service.Config) {
Expand Down

0 comments on commit 07f80c9

Please sign in to comment.