mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: fix ERR_TOO_MANY_REDIRECTS
This commit is contained in:
1 parent
d9f13feade
commit
eade2aaf56
2 files changed
+1
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.32.14",
|
||||
"version": "2.32.15",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -868,7 +868,6 @@ let started = false;
|
||||
export function start() {
|
||||
if (started) return;
|
||||
const port = system.get('server.port');
|
||||
router.all('domain_main_redirect', '/d/:domain', (ctx) => ctx.redirect(`/d/${ctx.params.domain}/`));
|
||||
app.use(router.routes()).use(router.allowedMethods());
|
||||
server.listen(argv.options.port || port);
|
||||
logger.success('Server listening at: %d', argv.options.port || port);
|
||||
|
||||
Reference in new issue
Block a user