summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorj.yao.SUSE <everhopingandwaiting@users.noreply.github.com>2016-07-01 09:26:15 -0500
committer无闻 <u@gogs.io>2016-07-01 22:26:15 +0800
commit99c3a9390fefd3990d9f3edc63310bbae72d0cab (patch)
tree98278815f608ca53c6ea6798c7b7307d2c1a6c22
parentf0df46c88a9854cbb46221ac6d076e6062a9efc1 (diff)
downloadgitea-99c3a9390fefd3990d9f3edc63310bbae72d0cab.tar.gz
gitea-99c3a9390fefd3990d9f3edc63310bbae72d0cab.zip
change setting.go -> LocalUrl default value to (#3078)
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
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)