[PATCH tlstunnel] Remove unused Server reference
Export this patch
---
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 14409ef..c9afe32 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
}
--
2.29.2
Pushed, thanks!