瀏覽代碼

disable quic-go's ECN support by default (#4069)

fatedier 1 年之前
父節點
當前提交
8383d528d9
共有 3 個文件被更改,包括 9 次插入0 次删除
  1. 1 0
      Release.md
  2. 4 0
      client/service.go
  3. 4 0
      server/service.go

+ 1 - 0
Release.md

@@ -1,3 +1,4 @@
 ### Fixes
 ### Fixes
 
 
 * Fix the issue of incorrect interval time for rotating the log by day.
 * 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 - 0
client/service.go

@@ -43,6 +43,10 @@ func init() {
 	crypto.DefaultSalt = "frp"
 	crypto.DefaultSalt = "frp"
 	// Disable quic-go's receive buffer warning.
 	// Disable quic-go's receive buffer warning.
 	os.Setenv("QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING", "true")
 	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 {
 type cancelErr struct {

+ 4 - 0
server/service.go

@@ -63,6 +63,10 @@ const (
 func init() {
 func init() {
 	// Disable quic-go's receive buffer warning.
 	// Disable quic-go's receive buffer warning.
 	os.Setenv("QUIC_GO_DISABLE_RECEIVE_BUFFER_WARNING", "true")
 	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
 // Server service