v1.0.5: dual-stack IPv6, pure AmneziaWG, scrub leaks, verifySession fix

This commit is contained in:
esefxdz committed 2026-07-16 20:02:37 +03:00
1 parent d6bdef4d89
commit 259db2f386
9 files changed
+97 -64

No files matched your search

+7 -2
View File
@@ -51,14 +51,19 @@ class HivemindService {
if (data['active'] == true && data['client_ip'] != null && data['server_pubkey'] != null) {
final clientIp = data['client_ip'];
final clientIpv6 = data['client_ipv6'] ?? '';
final serverPubkey = data['server_pubkey'];
// Build dual-stack Address: IPv4/16 + optional IPv6/80
final addresses = clientIpv6.isNotEmpty
? '$clientIp/16, $clientIpv6/80'
: '$clientIp/16';
// Construct the WireGuard config locally
// I CHANGED IPS MAY BREAK STUFF
final configText = '''
[Interface]
PrivateKey = $privKey
Address = $clientIp/16
Address = $addresses
DNS = ${AppConfig.dnsServers}
MTU = ${AppConfig.mtu}
Jc = ${AppConfig.awgJc}