Commit f793f5a 1 parent 9182580 commit f793f5a Copy full SHA for f793f5a
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ log_align: " TRSSYz "
9
9
# 插件加载超时
10
10
plugin_load_timeout : 60
11
11
# 监听文件变化
12
- file_watch : true
12
+ file_watch : false
13
13
14
14
# 自动更新时间
15
15
update_time : 1440
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export default class Yunzai extends EventEmitter {
102
102
return req . next ( )
103
103
104
104
for ( const i in cfg . server . auth ) {
105
- if ( req . query [ i ] === cfg . server . auth [ i ] || req . headers [ i . toLowerCase ( ) ] === cfg . server . auth [ i ] )
105
+ if ( req . headers [ i . toLowerCase ( ) ] === cfg . server . auth [ i ] || req . query [ i ] === cfg . server . auth [ i ] )
106
106
continue
107
107
req . res ?. sendStatus ( 401 )
108
108
@@ -139,7 +139,7 @@ export default class Yunzai extends EventEmitter {
139
139
}
140
140
141
141
async serverExit ( req ) {
142
- if ( "::1" !== req . ip && "::ffff:127.0.0.1" !== req . ip && req . hostname !== "localhost" ) return
142
+ if ( req . ip !== "::1" && req . ip !== "::ffff:127.0.0.1" && req . hostname !== "localhost" ) return
143
143
if ( process . env . app_type === "pm2" )
144
144
await this . exec ( "pnpm stop" )
145
145
process . exit ( 1 )
You can’t perform that action at this time.
0 commit comments