Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-16 19:37:10 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-16 19:37:10 +0300
commit9747e5820ce129895e95355b254d110cb39496a4 (patch)
tree15de284bad0b0344738dcfe7fe57596825e2b661 /main.go
parenta9b41da7fc5a07eae0a72dc7e59f323a73e74a54 (diff)
Fix small bugs
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index e5b43a6e..74e208bc 100644
--- a/main.go
+++ b/main.go
@@ -15,7 +15,7 @@ var VERSION = "dev"
var REVISION = "HEAD"
func appMain() {
- var listenHTTP = flag.String("listen-http", ":80", "The address to listen for HTTP requests")
+ var listenHTTP = flag.String("listen-http", "", "The address to listen for HTTP requests")
var listenHTTPS = flag.String("listen-https", "", "The address to listen for HTTPS requests")
var listenProxy = flag.String("listen-proxy", "", "The address to listen for proxy requests")
var pagesRootCert = flag.String("root-cert", "", "The default path to file certificate to serve static pages")
@@ -63,7 +63,7 @@ func appMain() {
if *listenProxy != "" {
var l net.Listener
- l, config.ListenHTTPS = createSocket(*listenProxy)
+ l, config.ListenProxy = createSocket(*listenProxy)
defer l.Close()
}