From 77747c038daa217a4eab8d73c9d1b395c1e57675 Mon Sep 17 00:00:00 2001 From: hktalent <18223385+hktalent@users.noreply.github.com> Date: Tue, 26 Dec 2023 14:26:45 +0800 Subject: [PATCH] fixed #5 2023-12-26 --- pkg/utils.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/utils.go b/pkg/utils.go index 24bb6740..656a62e8 100644 --- a/pkg/utils.go +++ b/pkg/utils.go @@ -42,8 +42,8 @@ func SetSSL() { // https://github.com/quic-go/quic-go/wiki/UDP-Receive-Buffer-Size func SetUdpReceiveBufferSize() { - util.DoCmd("sysctl", "-w", "net.core.rmem_max=2500000") - util.DoCmd("sysctl", "-w", "kern.ipc.maxsockbuf=3014656") + util.DoCmd("sysctl", "-w", "net.core.rmem_max=2500000 2>/dev/null") + util.DoCmd("sysctl", "-w", "kern.ipc.maxsockbuf=3014656 2>/dev/null") } func RunHttp3(addr string, router *gin.Engine) (err error) {