mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Bind localhost when a proxy auth header is set
This commit is contained in:
parent
604c5d49a6
commit
6fa575cf4f
@ -49,6 +49,9 @@ class Server
|
|||||||
{% if flag?(:release) %}
|
{% if flag?(:release) %}
|
||||||
Kemal.config.env = "production"
|
Kemal.config.env = "production"
|
||||||
{% end %}
|
{% end %}
|
||||||
|
unless Config.current.auth_proxy_header_name.empty?
|
||||||
|
Kemal.config.host_binding = "127.0.0.1"
|
||||||
|
end
|
||||||
Kemal.config.port = Config.current.port
|
Kemal.config.port = Config.current.port
|
||||||
Kemal.run
|
Kemal.run
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user