M directives.go => directives.go +1 -1
@@ 29,7 29,7 @@ func parseConfig(srv *Server, cfg scfg.Block) error {
}
func parseFrontend(srv *Server, d *scfg.Directive) error {
- frontend := &Frontend{Server: srv}
+ frontend := &Frontend{}
srv.Frontends = append(srv.Frontends, frontend)
// TODO: support multiple backends
M server.go => server.go +0 -1
@@ 192,7 192,6 @@ func (ln *Listener) matchFrontend(serverName string) (*Frontend, error) {
}
type Frontend struct {
- Server *Server
Backend Backend
Protocols []string
}