Skip to content

Commit

Permalink
Merge pull request #5395 from moesoha/master
Browse files Browse the repository at this point in the history
Revert #4913 "解决有时获取IP不正确问题。"
  • Loading branch information
jxlwqq authored Aug 31, 2021
2 parents 753ee13 + 3fbd636 commit 92cc52a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Middleware/LogOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class LogOperation
public function handle(Request $request, \Closure $next)
{
if ($this->shouldLogOperation($request)) {
$setProxy = $request->setTrustedProxies(request()->getClientIps(), \Illuminate\Http\Request::HEADER_X_FORWARDED_FOR);
$log = [
'user_id' => Admin::user()->id,
'path' => substr($request->path(), 0, 255),
Expand Down

0 comments on commit 92cc52a

Please sign in to comment.