set CompatibilityMode for android (#4091)

This commit is contained in:
fatedier
2024-03-21 17:34:09 +08:00
committed by GitHub
parent b36f3834eb
commit f16ef00975
8 changed files with 98 additions and 6 deletions

View File

@@ -26,6 +26,7 @@ import (
"strconv"
"time"
"github.com/fatedier/golib/crypto"
"github.com/fatedier/golib/net/mux"
fmux "github.com/hashicorp/yamux"
quic "github.com/quic-go/quic-go"
@@ -61,6 +62,7 @@ const (
)
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.