BUG修复前不对UDP链接进行限速

This commit is contained in:
wyx2685
2024-08-14 01:35:30 +09:00
parent 9e8f87740e
commit 07d49293d8
3 changed files with 5 additions and 6 deletions

View File

@@ -167,7 +167,7 @@ func (h *HookServer) RoutedPacketConnection(_ context.Context, conn N.PacketConn
log.Error("[", m.Inbound, "] ", "Limited ", m.User, " by ip or conn")
return conn, t
} else if b != nil {
conn = rate.NewPacketConnCounter(conn, b)
//conn = rate.NewPacketConnCounter(conn, b)
}
if h.EnableConnClear {
var key int