Skip to content

Commit 8fc1baf

Browse files
committed
Fix device name setting.
1 parent 934a9ac commit 8fc1baf

File tree

1 file changed

+1
-1
lines changed
  • coder-apps/common/coderlib/app

1 file changed

+1
-1
lines changed

coder-apps/common/coderlib/app/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ exports.api_set_device_name = function(app, req, res) {
274274
if (isValidDeviceName(req.body.name))
275275
{
276276
exports.device.name = req.body.name;
277-
exports.device.hostname = hostnameFromDeviceName( devicename );
277+
exports.device.hostname = hostnameFromDeviceName( req.body.name );
278278

279279
exports.device.save(function(err) {
280280
if (err)

0 commit comments

Comments
 (0)