mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 11:01:07 +00:00
Improve logging
This commit is contained in:
1 parent
6def7dbc9f
commit
f786af9d12
1 file changed
+7
@@ -392,6 +392,13 @@ class InboundNearbyConnection: NearbyConnection {
|
||||
|
||||
let pkeFrame = frame.v1.pairedKeyEncryption
|
||||
|
||||
if pkeFrame.secretIDHash.isEmpty {
|
||||
log("[InboundNearbyConnection \(self.id)] Detected legacy peer.")
|
||||
}
|
||||
else {
|
||||
log("[InboundNearbyConnection \(self.id)] Detected QuickDrop peer.")
|
||||
}
|
||||
|
||||
// Check if we can accept the connection automatically
|
||||
if !pkeFrame.secretIDHash.isEmpty,
|
||||
let trustedCertData = TrustStore.shared.findTrustedKey(for: pkeFrame.secretIDHash),
|
||||
|
||||
Reference in new issue
Block a user