diff --git a/inc/VpnClient.php b/inc/VpnClient.php index a61def2..8c00874 100644 --- a/inc/VpnClient.php +++ b/inc/VpnClient.php @@ -623,8 +623,8 @@ class VpnClient $stmt->execute([$serverData['id']]); $usedIPs = $stmt->fetchAll(PDO::FETCH_COLUMN); - // Reserve network address - $used = ['10.8.1.0' => true]; + // Reserve network address and server gateway (.1) + $used = ['10.8.1.0' => true, '10.8.1.1' => true]; foreach ($usedIPs as $ip) { $used[$ip] = true; }