mirror of
https://github.com/hkalexling/Mango.git
synced 2026-01-25 00:00:36 -05:00
Bind localhost when a proxy auth header is set
This commit is contained in:
@@ -49,6 +49,9 @@ class Server
|
||||
{% if flag?(:release) %}
|
||||
Kemal.config.env = "production"
|
||||
{% 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.run
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user