Skip to content

Commit

Permalink
Remove duplicated code snippet
Browse files Browse the repository at this point in the history
I found out that this code snippet is duplicated, might be caused by the typo or something.
  • Loading branch information
cypherius17 authored May 8, 2020
1 parent d3f52cf commit e8cee14
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bin/srv.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,6 @@ def answer(topic = None):
ip = ip[7:]
else:
ip = request.remote_addr
if request.headers.getlist("X-Forwarded-For"):
ip = request.headers.getlist("X-Forwarded-For")[0]
if ip.startswith('::ffff:'):
ip = ip[7:]
else:
ip = request.remote_addr


if topic is None:
topic = ":firstpage"
Expand Down

0 comments on commit e8cee14

Please sign in to comment.