Skip to content

Commit 7a88241

Browse files
committed
Binding to localhost only
1 parent 23f9b40 commit 7a88241

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

homemon-server/homemon-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ app.get('/snmp', page_snmp.page);
6565
app.use(function(req, res, next){
6666
res.send(404, "This is not the webpage you are looking for.");
6767
});
68-
server.listen(config.host_port);
68+
server.listen(config.host_port, 'localhost');
6969
console.log('listening on port ' + config.host_port);
7070

7171

homemon-server/public/javascripts/sensors2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ socket.on('data', function(data) {
2424

2525
// var row=table.insertRow(count);
2626
device = data.topic.substring(data.topic.lastIndexOf('/')+1);
27-
console.log("creating new row for " + device);
27+
console.log("creating new row for " + device + " as " + data.name);
2828

2929
var row=table.insertRow(table.rows.length);
3030

homemon-server/views/sensors2.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ block content
1616
| <th style="14%; text-align: center">Pressure</th>
1717
| <th style="14%; text-align: center">Humidity</th>
1818
| <th style="14%; text-align: center">NO2</th>
19-
| <th style="14%; text-align: center">NO</th>
19+
| <th style="14%; text-align: center">CO</th>
2020
| <th style="14%; text-align: center">CO2</th>
2121
| </tr></thead>
2222
| <tbody></tbody>

0 commit comments

Comments
 (0)