Initial commit

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ImBenji
2025-08-04 15:38:46 +01:00
commit e126e6ff94
21 changed files with 2385 additions and 0 deletions

10
lib/wireguard/utils.dart Normal file
View File

@@ -0,0 +1,10 @@
import 'dart:io';
Future<String> getServerPublicKey() async {
final result = await Process.run('wg', ['show', 'wg0', 'public-key']);
if (result.exitCode != 0) {
throw Exception('Failed to get server public key: ${result.stderr}');
}
return result.stdout.toString().trim();
}