summaryrefslogtreecommitdiffstats
path: root/server/api
diff options
context:
space:
mode:
authorJannik Schönartz2019-04-19 00:44:56 +0200
committerJannik Schönartz2019-04-19 00:44:56 +0200
commita6af8488dff264f866e26c1b496cdfda21809f95 (patch)
treea6842d93cb8168be4662afa455c91b39bd252422 /server/api
parent[server/bashscript] Remove old grep hw data script and add NMVe support. (diff)
downloadbas-a6af8488dff264f866e26c1b496cdfda21809f95.tar.gz
bas-a6af8488dff264f866e26c1b496cdfda21809f95.tar.xz
bas-a6af8488dff264f866e26c1b496cdfda21809f95.zip
[server/external-backends] Add hostname and domain to the network object for the backends
Diffstat (limited to 'server/api')
-rw-r--r--server/api/registration.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/api/registration.js b/server/api/registration.js
index 5c5437b..d79621f 100644
--- a/server/api/registration.js
+++ b/server/api/registration.js
@@ -173,6 +173,8 @@ noAuthRouter.postAsync('/clients', async (req, res) => {
} else {
// Client ip set successfully
client.networks[0].ip = network.dhcp
+ client.networks[0].hostname = client.name
+ client.networks[0].domain = setIp.domain
}
} else {
ipSelection = true