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:
authorNick Thomas <nick@bytemark.co.uk>2016-05-05 15:16:32 +0300
committerNick Thomas <me@ur.gs>2016-09-09 01:56:37 +0300
commit33fca0976f95eac7ddce424080db9e381ec7388e (patch)
treeb0879a1eba1b3be67ec867d1b8a3027b5f0e2168 /app_config.go
parent62b22d776ebf3115e0ed2ae46191f40ae71fc0a7 (diff)
Allow -listen-http, -listen-https and -listen-proxy to be given more than once
Per issue #13, sometimes you want to listen on more than one port for each type of listener. This commit adds support for that.
Diffstat (limited to 'app_config.go')
-rw-r--r--app_config.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/app_config.go b/app_config.go
index 8da2437a..7ffa1e76 100644
--- a/app_config.go
+++ b/app_config.go
@@ -6,9 +6,9 @@ type appConfig struct {
RootCertificate []byte
RootKey []byte
- ListenHTTP uintptr
- ListenHTTPS uintptr
- ListenProxy uintptr
+ ListenHTTP []uintptr
+ ListenHTTPS []uintptr
+ ListenProxy []uintptr
HTTP2 bool
RedirectHTTP bool