Remove listen directive
The name is misleading, because we're doing some magic to figure out what server name to obtain a certificate for. In other words, `listen example.org:443` would actually listen without binding to a particular IP address (same as `listen :443`).
This commit is contained in:
parent
758cac1f77
commit
f4d13a4101
7
main.go
7
main.go
|
@ -44,12 +44,7 @@ func parseFrontend(srv *Server, d *Directive) error {
|
|||
}
|
||||
|
||||
var listenNames []string
|
||||
for _, listenDirective := range d.ChildrenByName("listen") {
|
||||
var listenAddr string
|
||||
if err := listenDirective.ParseParams(&listenAddr); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, listenAddr := range d.Params {
|
||||
host, port, err := net.SplitHostPort(listenAddr)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to parse listen address %q: %v", listenAddr, err)
|
||||
|
|
Loading…
Reference in New Issue