tlsd 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tlsd.js +6 -1
package/package.json
CHANGED
package/tlsd.js
CHANGED
|
@@ -168,7 +168,12 @@ const basic_handler = function( root ) {
|
|
|
168
168
|
// Serve static files for domain
|
|
169
169
|
app.use( serveStatic( root + "/static" ) );
|
|
170
170
|
|
|
171
|
-
app.use(
|
|
171
|
+
app.use( function( req, res, next ) {
|
|
172
|
+
res.writeHead( 302, {
|
|
173
|
+
"Location": "/404/",
|
|
174
|
+
});
|
|
175
|
+
res.end();
|
|
176
|
+
} );
|
|
172
177
|
|
|
173
178
|
return app;
|
|
174
179
|
|