mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Stops path-proxy from crashing on error messages
This commit is contained in:
@@ -107,6 +107,7 @@ var proxyRules = new HttpProxyRules({
|
||||
});
|
||||
|
||||
var pathProxy = httpProxy.createProxy({ws: true});
|
||||
pathProxy.on('error', function(err) { console.error('path proxy error', err); });
|
||||
var pathProxyPort = port + 1;
|
||||
const proxyPathServer = http.createServer(function(req, res) {
|
||||
var target = proxyRules.match(req);
|
||||
|
||||
Reference in New Issue
Block a user