~emersion/tlstunnel

09d28676a6b0a1f1bbebb82b49b4a7db7894df7a — minus 2 months ago d2dffca
Remove unused Server reference
2 files changed, 1 insertions(+), 2 deletions(-)

M directives.go
M server.go
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
}