Merge branch 'debug-slow-conn' into merged-fixes

This commit is contained in:
Zoltán Papp
2025-09-04 13:54:13 +02:00
5 changed files with 44 additions and 5 deletions

View File

@@ -394,6 +394,13 @@ func toLastHandshake(stringVar string) (time.Time, error) {
if err != nil {
return time.Time{}, fmt.Errorf("parse handshake sec: %w", err)
}
// If sec is 0 (Unix epoch), return zero time instead
// This indicates no handshake has occurred
if sec == 0 {
return time.Time{}, nil
}
return time.Unix(sec, 0), nil
}