mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
disable yamux default log
This commit is contained in:
parent
b0959b3caa
commit
f45283dbdb
@ -17,6 +17,7 @@ package client
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
@ -198,7 +199,9 @@ func (ctl *Control) login() (err error) {
|
||||
}()
|
||||
|
||||
if g.GlbClientCfg.TcpMux {
|
||||
session, errRet := fmux.Client(conn, nil)
|
||||
fmuxCfg := fmux.DefaultConfig()
|
||||
fmuxCfg.LogOutput = ioutil.Discard
|
||||
session, errRet := fmux.Client(conn, fmuxCfg)
|
||||
if errRet != nil {
|
||||
return errRet
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"net/http"
|
||||
"time"
|
||||
@ -234,7 +235,9 @@ func (svr *Service) HandleListener(l frpNet.Listener) {
|
||||
}
|
||||
|
||||
if g.GlbServerCfg.TcpMux {
|
||||
session, err := fmux.Server(frpConn, nil)
|
||||
fmuxCfg := fmux.DefaultConfig()
|
||||
fmuxCfg.LogOutput = ioutil.Discard
|
||||
session, err := fmux.Server(frpConn, fmuxCfg)
|
||||
if err != nil {
|
||||
log.Warn("Failed to create mux connection: %v", err)
|
||||
frpConn.Close()
|
||||
|
Loading…
Reference in New Issue
Block a user