diff options
Diffstat (limited to 'searx/plugins')
-rw-r--r-- | searx/plugins/self_info.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/searx/plugins/self_info.py b/searx/plugins/self_info.py index 438274c41..2f19ad9c7 100644 --- a/searx/plugins/self_info.py +++ b/searx/plugins/self_info.py @@ -37,10 +37,10 @@ def post_search(request, ctx): ip = x_forwarded_for[0] else: ip = request.remote_addr - ctx['search'].result_container.answers.clear() - ctx['search'].result_container.answers.add(ip) + ctx['result_container'].answers.clear() + ctx['result_container'].answers.add(ip) elif p.match(ctx['search'].query): ua = request.user_agent - ctx['search'].result_container.answers.clear() - ctx['search'].result_container.answers.add(ua) + ctx['result_container'].answers.clear() + ctx['result_container'].answers.add(ua) return True |