From 99c3a9390fefd3990d9f3edc63310bbae72d0cab Mon Sep 17 00:00:00 2001 From: "j.yao.SUSE" Date: Fri, 1 Jul 2016 09:26:15 -0500 Subject: [PATCH] change setting.go -> LocalUrl default value to (#3078) --- modules/setting/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index d08d5be632..4bd77ca6a1 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -333,7 +333,7 @@ func NewContext() { Domain = sec.Key("DOMAIN").MustString("localhost") HttpAddr = sec.Key("HTTP_ADDR").MustString("0.0.0.0") HttpPort = sec.Key("HTTP_PORT").MustString("3000") - LocalURL = sec.Key("LOCAL_ROOT_URL").MustString("http://localhost:" + HttpPort + "/") + LocalURL = sec.Key("LOCAL_ROOT_URL").MustString(string(Protocol) + "://localhost:" + HttpPort + "/") OfflineMode = sec.Key("OFFLINE_MODE").MustBool() DisableRouterLog = sec.Key("DISABLE_ROUTER_LOG").MustBool() StaticRootPath = sec.Key("STATIC_ROOT_PATH").MustString(workDir)