mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-23 06:46:03 +00:00
Translate and enable all alert views
This commit is contained in:
1 parent
399fc8810b
commit
c18a240ab3
22 files changed
+695
-36
No files matched your search
@@ -88,6 +88,28 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
||||
}
|
||||
|
||||
UNUserNotificationCenter.current().delegate=self
|
||||
|
||||
let scanner = DeviceToDeviceHeuristicScanner()
|
||||
scanner.scan { allowed in
|
||||
if allowed {
|
||||
log("✅ Device-to-device likely allowed (peer responded on LAN).")
|
||||
} else {
|
||||
|
||||
let scanner2 = IPv6DeviceScanner()
|
||||
scanner2.scan(interface: "en0") { devices in
|
||||
if devices.isEmpty {
|
||||
log("❌ No local devices responded — peer-to-peer may be blocked.")
|
||||
|
||||
self.openAlert(type: .ApIsolation)
|
||||
} else {
|
||||
log("✅ Found IPv6 devices (excluding router):")
|
||||
for ip in devices {
|
||||
print(" • \(ip)")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user