You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the (action =='tunnel') is always false since there is no action and nothing is ever equal to 'tunnel'
Expected Behavior
This is what it should be:
wsServer.on('request', function(request) {
var url = urlParse(request.resource, true);
var params = url.query;
if (params['sb-hc-action'] === 'accept') {
createTunnel(request, params.port, params.host);
} else {
request.reject(404);
}
});
Versions
OS platform and version: Windows 10
Node Version: 8.6
NPM package version or commit ID:
The text was updated successfully, but these errors were encountered:
Actual Behavior
Expected Behavior
This is what it should be:
wsServer.on('request', function(request) {
var url = urlParse(request.resource, true);
var params = url.query;
if (params['sb-hc-action'] === 'accept') {
createTunnel(request, params.port, params.host);
} else {
request.reject(404);
}
});
Versions
The text was updated successfully, but these errors were encountered: