mirror of
https://github.com/fosrl/gerbil.git
synced 2026-03-27 13:06:39 +00:00
Update logging
This commit is contained in:
@@ -309,7 +309,7 @@ func (s *UDPProxyServer) packetWorker() {
|
|||||||
allowed := rlEntry.count <= 2
|
allowed := rlEntry.count <= 2
|
||||||
rlEntry.mu.Unlock()
|
rlEntry.mu.Unlock()
|
||||||
if !allowed {
|
if !allowed {
|
||||||
logger.Debug("Rate limiting hole punch message from %s", rateLimitKey)
|
// logger.Debug("Rate limiting hole punch message from %s", rateLimitKey)
|
||||||
bufferPool.Put(packet.data[:1500])
|
bufferPool.Put(packet.data[:1500])
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -333,7 +333,7 @@ func (s *UDPProxyServer) packetWorker() {
|
|||||||
// This appears to be an encrypted message
|
// This appears to be an encrypted message
|
||||||
decryptedData, err := s.decryptMessage(encMsg)
|
decryptedData, err := s.decryptMessage(encMsg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("Failed to decrypt message: %v", err)
|
// logger.Error("Failed to decrypt message: %v", err)
|
||||||
// Return the buffer to the pool for reuse and continue with next packet
|
// Return the buffer to the pool for reuse and continue with next packet
|
||||||
bufferPool.Put(packet.data[:1500])
|
bufferPool.Put(packet.data[:1500])
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user