From 7c26c9adf31d06a9c8229a33e7b1e50b77c173ff Mon Sep 17 00:00:00 2001 From: h4775346 Date: Mon, 1 Jul 2024 17:36:44 +0300 Subject: [PATCH] 1.0.0 --- index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.php b/index.php index 0d6b749..974fb0b 100644 --- a/index.php +++ b/index.php @@ -39,6 +39,10 @@ function generateRandomPassword($length = 12) { // Get the next available IP address function getNextIp($users) { + if (empty($users)) { + return '10.255.10.11'; + } + $lastIp = end($users)['ip']; $lastIpLong = ip2long($lastIp); $nextIpLong = $lastIpLong + 1;