Skip to content

Commit

Permalink
Fixed error with reading HTTP port in src/wire/main.js
Browse files Browse the repository at this point in the history
When the configuration format for Wire in ports.json was changed, the `$port$` variable for custom error pages was not adjusted to reflect this change, resulting in an exception. This commit fixes the error.
  • Loading branch information
ZelnickB committed Aug 24, 2020
1 parent 0806cdf commit 372427b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wire/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function serverHandler (req, res) {
.replace(/\$osplatform\$/g, os.platform())
.replace(/\$ostype\$/g, os.type())
.replace(/\$osversion\$/g, os.release())
.replace(/\$port\$/g, ports.wireHTTP.toString())
.replace(/\$port\$/g, ports.HTTP.toString())
.replace(/\$errcode\$/, err.code)
.replace(/\$errno\$/, err.errno.toString())
.replace(/\$errmessage\$/, err.message)
Expand Down

0 comments on commit 372427b

Please sign in to comment.