server: fix some var regressions

This commit is contained in:
jean-emmanuel 2025-09-13 10:30:52 +02:00
parent 11d2588395
commit 37f3ee0378
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export default class OscUDPServer {
this.server.on('error', function(e) {
if (e.code === 'EADDRINUSE') {
console.error(`(ERROR, UDP) could not open port ${oscInPort} (already in use) `)
console.error(`(ERROR, UDP) could not open port ${this.port} (already in use) `)
} else {
console.error('(ERROR, UDP)', e)
}

View file

@ -210,7 +210,7 @@ class WebServer extends EventEmitter {
id = (req.headers.cookie.match(/client_id=([^;]+)/) || [])[1]
}
resolvedPath = this.resolvePath(decodeURI(url), id)
var resolvedPath = this.resolvePath(decodeURI(url), id)
if (resolvedPath) {
try {