Skip to content

Commit

Permalink
add port to GM_HOSTPORT default value (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mch1307 committed Nov 20, 2017
1 parent 1975650 commit 3997988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func Initialize(cfg string) {
Conf.JeedomConfig.URL = coalesce(os.Getenv("JEE_URL"), Conf.JeedomConfig.URL)
Conf.JeedomConfig.APIKey = coalesce(os.Getenv("JEE_APIKEY"), Conf.JeedomConfig.APIKey)
Conf.NhcConfig.Host = coalesce(os.Getenv("NHC_HOST"), Conf.NhcConfig.Host)
Conf.ServerConfig.GMHostPort = coalesce(os.Getenv("GM_HOSTPORT"), Conf.ServerConfig.GMHostPort, "localhost")
Conf.ServerConfig.GMHostPort = coalesce(os.Getenv("GM_HOSTPORT"), Conf.ServerConfig.GMHostPort, "localhost:"+strconv.Itoa(Conf.ServerConfig.ListenPort))
var co = "N"
if Conf.JeedomConfig.AutoCreateObjects {
co = "Y"
Expand Down

0 comments on commit 3997988

Please sign in to comment.