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

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

No files matched your search

+1 -1
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