From 11d23eea2cdc790c927197ed17c5c80ed3f147fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Zolnai?= Date: Tue, 30 Jul 2024 11:48:03 +0200 Subject: [PATCH] Add allowed IPs --- app/src/main/java/nl/eduvpn/app/service/WireGuardService.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/nl/eduvpn/app/service/WireGuardService.kt b/app/src/main/java/nl/eduvpn/app/service/WireGuardService.kt index 3908b045..ccf70abc 100644 --- a/app/src/main/java/nl/eduvpn/app/service/WireGuardService.kt +++ b/app/src/main/java/nl/eduvpn/app/service/WireGuardService.kt @@ -127,6 +127,7 @@ class WireGuardService(private val context: Context, timer: Flow): VPNServ .addPeers( config.peers.map { val builder = Peer.Builder() + .addAllowedIps(it.allowedIps) .setPublicKey(it.publicKey) .setPersistentKeepalive(25) it.endpoint.getOrNull()?.let { endpoint ->