* fix typo in SSL support VRFS-2680
This commit is contained in:
parent
f2aba1e390
commit
643595c531
|
|
@ -49,14 +49,12 @@ module ClientHelper
|
|||
else
|
||||
gon.websocket_gateway_trusted_uri = "ws://" + request.host + ":6768/websocket";
|
||||
end
|
||||
|
||||
|
||||
else
|
||||
# but in any other mode, just use config
|
||||
if request.headers['X-Forwarded-Proto'] == 'https'
|
||||
gon.websocket_gateway_uri = Rails.application.config.websocket_gateway_trusted_uri_ssl
|
||||
gon.websocket_gateway_trusted_uri = Rails.application.config.websocket_gateway_trusted_uri_ssl
|
||||
else
|
||||
gon.websocket_gateway_uri = Rails.application.config.websocket_gateway_trusted_uri
|
||||
gon.websocket_gateway_trusted_uri = Rails.application.config.websocket_gateway_trusted_uri
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue