fix: submode=2 don't limit speed

This commit is contained in:
langhuihui
2024-07-26 11:11:18 +08:00
parent 23c24f505a
commit 2bf90bb262

View File

@@ -210,6 +210,7 @@ func Receive(streamPath, dump, port string, ssrc uint32, reuse bool) (err error)
switch protocol {
case "tcp":
var tcpConf config.TCP
tcpConf.ListenNum = 1
tcpConf.ListenAddr = listenaddr
if reuse {
if _, ok := conf.shareTCP.LoadOrStore(listenaddr, &tcpConf); ok {