浏览代码

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))


正在加载...
取消
保存