Skip to content

Commit

Permalink
fix(webserver): Fix handleHttpDnsRequest scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jan 31, 2021
1 parent 186abd3 commit 8226e4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/webserver/WebServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ class WebServer {
miio-implementation specific second webserver on 8079 :/
*/
if (this.robot instanceof MiioValetudoRobot) {
this.app.get("/gslb", this.robot.handleHttpDnsRequest);
this.app.get("/gslb", (req, res) => {
this.robot.handleHttpDnsRequest(req, res);
});
}

this.app.use((err, req, res, next) => {
Expand Down

0 comments on commit 8226e4a

Please sign in to comment.