~emersion/public-inbox

tlstunnel: Remove unused Server reference v1 APPLIED

minus
minus: 1
 Remove unused Server reference

 2 files changed, 1 insertions(+), 2 deletions(-)
#365057 .build.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/15914/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH tlstunnel] Remove unused Server reference Export this patch

minus
---
 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!