summaryrefslogtreecommitdiffstats
path: root/server/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/api')
-rw-r--r--server/api/registration.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index d79621f..190bfeb 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -137,7 +137,7 @@ noAuthRouter.postAsync('/clients', async (req, res) => {
// If there is no ip, we don't need DHCP checks.
// Only the first ip address is checked! client.networks[0]
let dhcp = false
- if (client.networks.length >= 1) {
+ if (client.networks.length >= 1 && client.type === 'CLIENT') {
const network = client.networks[0]
// Get the dhcp backend. Only one dhcp backend can exist else -> conflict.
dhcp = await backendHelper.getDhcp()