We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12263f0 commit b163c86Copy full SHA for b163c86
src/app/main.go
@@ -65,9 +65,18 @@ func NewApp(params []*param.Param) *App {
65
}
66
67
68
+ listens := p.Listens
69
+ if len(listens) == 0 && len(p.ListensPlain) == 0 && len(p.ListensTLS) == 0 {
70
+ if cert == nil {
71
+ listens = []string{":80"}
72
+ } else {
73
+ listens = []string{":443"}
74
+ }
75
76
+
77
// init vhost
78
errors = vhSvc.Add(&goVirtualHost.HostInfo{
- Listens: p.Listens,
79
+ Listens: listens,
80
ListensPlain: p.ListensPlain,
81
ListensTLS: p.ListensTLS,
82
Cert: cert,
0 commit comments