From 09d28676a6b0a1f1bbebb82b49b4a7db7894df7a Mon Sep 17 00:00:00 2001 From: minus Date: Fri, 11 Dec 2020 11:17:58 +0100 Subject: [PATCH] Remove unused Server reference --- directives.go | 2 +- server.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/directives.go b/directives.go index bad0094..5ffd625 100644 --- a/directives.go +++ b/directives.go @@ -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 diff --git a/server.go b/server.go index f424258..b79d1fe 100644 --- a/server.go +++ b/server.go @@ -192,7 +192,6 @@ func (ln *Listener) matchFrontend(serverName string) (*Frontend, error) { } type Frontend struct { - Server *Server Backend Backend Protocols []string }