wuyi 3 месяцев назад
Родитель
Сommit
6e8a4201b1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/app.ts

+ 1 - 1
src/app.ts

@@ -24,7 +24,7 @@ const options: FastifyEnvOptions = {
 export const createApp = async () => {
   const app = fastify({
     disableRequestLogging: true,
-    trustProxy: true, // 信任代理,用于获取真实客户端 IP
+    trustProxy: true,
     logger: {
       level: process.env.NODE_ENV === 'development' ? 'debug' : 'info',
       transport: {