slight refactor

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer
2025-05-16 13:17:51 +02:00
parent 5bc0ed6e11
commit 03075f1890
5 changed files with 99 additions and 95 deletions

View File

@ -23,5 +23,9 @@ func DebugPacket(p *radius.Packet) {
}
func FormatBytes(d []byte) string {
return fmt.Sprintf("% x", d)
b := d
if len(b) > 32 {
b = b[:32]
}
return fmt.Sprintf("% x", b)
}