Skip to content

Commit 61a25e7

Browse files
committed
Lower priority of per-packet error message
The error message "Failed to handle datagram" is generated for each received packet; it can therefore be used by an attacker to fill the server's logs by sending a burst of incorrect packets. Lower its priority to debug.
1 parent 51f0d62 commit 61a25e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (s *Server) readLoop(conn net.PacketConn, allocationManager *allocation.Man
233233
ChannelBindTimeout: s.channelBindTimeout,
234234
NonceHash: s.nonceHash,
235235
}); err != nil {
236-
s.log.Errorf("Failed to handle datagram: %v", err)
236+
s.log.Debugf("Failed to handle datagram: %v", err)
237237
}
238238
}
239239
}

0 commit comments

Comments
 (0)