From b56f45919b20f3b3360aae4a141c5d3efcec825a Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Fri, 7 Jun 2019 15:40:04 +0000 Subject: [registration] Skip dhcp stuff for SERVERS --- server/api/registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3-55-g7522