Skip to content

Commit

Permalink
Discard X-Forwarded-Host headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ikus060 committed Dec 6, 2022
1 parent 8e1a479 commit 5f86167
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -108,6 +108,10 @@ Professional support for Rdiffweb is available by contacting [IKUS Soft](https:/

# Changelog

## Next Release - 2.5.4

* Discard `X-Forwarded-Host` headers

## 2.5.3 (2022-12-05)

* Add support for WTForms v3 to support Debian Bookworm
Expand Down
2 changes: 1 addition & 1 deletion rdiffweb/rdw_app.py
Expand Up @@ -85,7 +85,7 @@
@cherrypy.tools.currentuser(userobj=lambda username: UserObject.get_user(username))
@cherrypy.tools.db()
@cherrypy.tools.enrich_session()
@cherrypy.tools.proxy(remote='X-Real-IP')
@cherrypy.tools.proxy(local=None, remote='X-Real-IP')
@cherrypy.tools.secure_headers()
class Root(LocationsPage):
def __init__(self):
Expand Down

0 comments on commit 5f86167

Please sign in to comment.