Translate and enable all alert views

This commit is contained in:
Leon Böttger committed 2025-05-15 17:35:28 +02:00
1 parent 399fc8810b
commit c18a240ab3
22 files changed
+695 -36

No files matched your search

+22
View File
@@ -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)")
}
}
}
}
}
}