diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-03-01 14:17:29 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-03-01 14:17:29 -0300 |
commit | 81f97ebc88be468f3cefecf8c850459d7eccc459 (patch) | |
tree | b25020058b893fec416ba5949a5a4500ba7c6c10 /utils | |
parent | ba6a38a7f6c497e025708111046d67875c4361be (diff) | |
download | chat-81f97ebc88be468f3cefecf8c850459d7eccc459.tar.gz chat-81f97ebc88be468f3cefecf8c850459d7eccc459.tar.bz2 chat-81f97ebc88be468f3cefecf8c850459d7eccc459.zip |
Add default value to AllowCorsFrom setting
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/config.go b/utils/config.go index 0a1d40db0..63906c345 100644 --- a/utils/config.go +++ b/utils/config.go @@ -236,7 +236,7 @@ func getClientConfig(c *model.Config) map[string]string { props["WebsocketPort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketPort) props["WebsocketSecurePort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketSecurePort) - props["AllowCorsFrom"] = c.ServiceSettings.AllowCorsFrom + props["AllowCorsFrom"] = *c.ServiceSettings.AllowCorsFrom return props } |