Skip to content

Commit

Permalink
disable quic-go's ECN support by default (fatedier#4069)
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier authored Mar 15, 2024
1 parent fa977c8 commit 8383d52
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Release.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
### Fixes

* Fix the issue of incorrect interval time for rotating the log by day.
* Disable quic-go's ECN support by default. It may cause issues on certain operating systems.
4 changes: 4 additions & 0 deletions client/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func init() {
crypto.DefaultSalt = "frp"
// Disable quic-go's receive buffer warning.
os.Setenv("QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING", "true")
// Disable quic-go's ECN support by default. It may cause issues on certain operating systems.
if os.Getenv("QUIC_GO_DISABLE_ECN") == "" {
os.Setenv("QUIC_GO_DISABLE_ECN", "true")
}
}

type cancelErr struct {
Expand Down
4 changes: 4 additions & 0 deletions server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ const (
func init() {
// Disable quic-go's receive buffer warning.
os.Setenv("QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING", "true")
// Disable quic-go's ECN support by default. It may cause issues on certain operating systems.
if os.Getenv("QUIC_GO_DISABLE_ECN") == "" {
os.Setenv("QUIC_GO_DISABLE_ECN", "true")
}
}

// Server service
Expand Down

0 comments on commit 8383d52

Please sign in to comment.