2026-04-03-pre map libra
This commit is contained in:
@@ -28,7 +28,7 @@ class NetGuard {
|
||||
// اختباري خفيف عبر TCP (80/443) — 400ms timeout
|
||||
final port = mustReach.scheme == 'http' ? 80 : 443;
|
||||
final socket = await Socket.connect(host, port,
|
||||
timeout: const Duration(milliseconds: 400));
|
||||
timeout: const Duration(seconds: 1));
|
||||
socket.destroy();
|
||||
} catch (_) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user