*
Showing
2 changed files
with
10 additions
and
1 deletions
... | @@ -38,7 +38,7 @@ class AuthIdentifier | ... | @@ -38,7 +38,7 @@ class AuthIdentifier |
38 | $request->attributes->add(['request_id' => Snowflake::gen(),]); | 38 | $request->attributes->add(['request_id' => Snowflake::gen(),]); |
39 | 39 | ||
40 | $prefix = current(explode('/', $request->path())); | 40 | $prefix = current(explode('/', $request->path())); |
41 | if (!in_array($prefix, $this->auth)) goto AUTH; | 41 | if (!in_array($prefix, $this->auth) || (in_array($request->ip(), explode(',', config('api.inside')['ip'])))) goto AUTH; |
42 | 42 | ||
43 | $identifier = $request->header('identifier'); | 43 | $identifier = $request->header('identifier'); |
44 | 44 | ... | ... |
-
Please register or sign in to post a comment