소스 검색

Made it so that we store the origin IP for user-submitted articles.

master
Trey Del Bonis 2 년 전
부모
커밋
d9112b0ca6
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      app.py

+ 1
- 0
app.py 파일 보기

@@ -135,6 +135,7 @@ async def handle_submit(req: Request, article: str = Form(...)):
return make_html_redirect_response('/')

# If it all looks good then store it and report it.
fetched_art['srcip'] = ipaddr
await add_article(eff_date, fetched_art)
await reporthook.send_report('address %s submitted good-looking article %s' % (ipaddr, article))


Loading…
취소
저장