Remove unused Server reference

This commit is contained in:
minus 2020-12-11 11:17:58 +01:00 committed by Simon Ser
parent d2dffca48f
commit 09d28676a6
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -192,7 +192,6 @@ func (ln *Listener) matchFrontend(serverName string) (*Frontend, error) {
}
type Frontend struct {
Server *Server
Backend Backend
Protocols []string
}