Fix CodeRabbit findings: upgrade goxmldsig, clear metadata unconditionally

This commit is contained in:
Viktor Liu
2026-03-30 16:39:38 +02:00
parent 9c1eb0d288
commit 72a5caebcc
3 changed files with 4 additions and 6 deletions

View File

@@ -57,9 +57,7 @@ func (a *AccessLogEntry) FromProto(serviceLog *proto.AccessLog) {
a.BytesUpload = serviceLog.GetBytesUpload()
a.BytesDownload = serviceLog.GetBytesDownload()
a.Protocol = AccessLogProtocol(serviceLog.GetProtocol())
if m := serviceLog.GetMetadata(); len(m) > 0 {
a.Metadata = maps.Clone(m)
}
a.Metadata = maps.Clone(serviceLog.GetMetadata())
if sourceIP := serviceLog.GetSourceIp(); sourceIP != "" {
if addr, err := netip.ParseAddr(sourceIP); err == nil {