summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2015-06-19 10:07:15 -0400
committerJoram Wilander <jwawilander@gmail.com>2015-06-19 10:07:15 -0400
commit4f7d30af0d0413d8a333e2884cebfe6bf80fd6c1 (patch)
tree49c55d55099b59f75b90457fd969ef9bec904f9f
parent5275eaf89620da16d0cfae83bfcda2380fae2300 (diff)
parent23dcbb550625242f120f2211d744b746850e2085 (diff)
downloadchat-4f7d30af0d0413d8a333e2884cebfe6bf80fd6c1.tar.gz
chat-4f7d30af0d0413d8a333e2884cebfe6bf80fd6c1.tar.bz2
chat-4f7d30af0d0413d8a333e2884cebfe6bf80fd6c1.zip
Merge pull request #38 from mattermost/feedback-email-fix
Defaulting to domain of localhost when no domain is given HELIUM
-rw-r--r--utils/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index 23bd3e85a..6a7e4589c 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -221,6 +221,10 @@ func LoadConfig(fileName string) {
// Grabs the domain from enviroment variable if not in configuration
if config.ServiceSettings.Domain == "" {
config.ServiceSettings.Domain = os.Getenv("MATTERMOST_DOMAIN")
+ // If the enviroment variable is not set, use a default
+ if config.ServiceSettings.Domain == "" {
+ config.ServiceSettings.Domain = "localhost"
+ }
}
// Check for a valid email for feedback, if not then do feedback@domain