mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
* Fix behavior for `REVERSE_PROXY` setting when set to a boolean instead of a string
This commit is contained in:
@@ -177,7 +177,7 @@ def create_app(config="CTFd.config.Config"):
|
||||
|
||||
reverse_proxy = app.config.get("REVERSE_PROXY")
|
||||
if reverse_proxy:
|
||||
if "," in reverse_proxy:
|
||||
if type(reverse_proxy) is str and "," in reverse_proxy:
|
||||
proxyfix_args = [int(i) for i in reverse_proxy.split(",")]
|
||||
app.wsgi_app = ProxyFix(app.wsgi_app, None, *proxyfix_args)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user