feat: 更新资源迁移逻辑,优化用户 ID 处理,删除冗余代码
This commit is contained in:
@@ -16,7 +16,6 @@ import { UserV1Proxy } from '../modules/v1-ws-proxy/proxy.ts';
|
||||
import { UserV3Proxy } from '@/modules/v3/index.ts';
|
||||
import { hasBadUser, userIsBanned, appIsBanned, userPathIsBanned } from '@/modules/off/index.ts';
|
||||
import { robotsTxt } from '@/modules/html/index.ts';
|
||||
import { isBun } from '@/utils/get-engine.ts';
|
||||
import { N5Proxy } from '@/modules/n5/index.ts';
|
||||
const domain = config?.proxy?.domain;
|
||||
const allowedOrigins = config?.proxy?.allowedOrigin || [];
|
||||
@@ -251,7 +250,7 @@ export const handleRequest = async (req: http.IncomingMessage, res: http.ServerR
|
||||
res.write(msg || 'Not Found App\n');
|
||||
res.end();
|
||||
};
|
||||
if (app === 'ai' || app === 'resources' || app === 'r') {
|
||||
if (app === 'resources') {
|
||||
return aiProxy(req, res, {
|
||||
createNotFoundPage,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user