summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2019-06-07 17:40:04 +0200
committerJannik Schönartz2019-06-07 17:40:04 +0200
commitb56f45919b20f3b3360aae4a141c5d3efcec825a (patch)
tree01e63532c7d8e8f23b293b0b0e62cf85fdc9d2f6
parent[external-backends/idoit] New idoit version -> bugfixes -> remove workarounds (diff)
downloadbas-b56f45919b20f3b3360aae4a141c5d3efcec825a.tar.gz
bas-b56f45919b20f3b3360aae4a141c5d3efcec825a.tar.xz
bas-b56f45919b20f3b3360aae4a141c5d3efcec825a.zip
[registration] Skip dhcp stuff for SERVERS
-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()