Add Waylume Manifesto and update API routes for peer management

This commit is contained in:
ImBenji
2025-08-17 21:56:59 +01:00
parent 573744a22d
commit 8b63de7db2
6 changed files with 574 additions and 253 deletions

View File

@@ -1,26 +1,4 @@
import 'dart:isolate';
import 'dart:math';
import 'package:waylume_server/services/vpn_session_service.dart';
void initVpnSessionMonitor() {
// Run this on a separate thread
Isolate.spawn((_) async {
// To avoid server deadlock, add random delay
await Future.delayed(Duration(seconds: Random().nextInt(10)));
print('VPN Session Monitor started');
while (true) {
try {
await VpnSessionService.detectSessions();
} catch (e) {
print('Error in VPN session monitor: $e');
}
// Check for sessions every 60 seconds
await Future.delayed(Duration(seconds: 60));
}
}, null);
// VPN session monitoring disabled - peer management now handled via API endpoints
print('VPN Session Monitor: Monitoring disabled - using API endpoints for peer management');
}