~emersion/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH tlstunnel] Remove unused Server reference

minus
Details
Message ID
<20201211101758.2789264-1-minus@mnus.de>
DKIM signature
pass
Download raw message
Patch: +1 -2
---
 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
Details
Message ID
<4AjykFRrPf8fvSHTgVIyhbE43_MAMi75VD4febns0N2hpF0RAmO8-hj73F--Zr6uNmzE46IETCFDkjvGsg27bszT30ykZK1vs95O7VK7Vgs=@emersion.fr>
In-Reply-To
<20201211101758.2789264-1-minus@mnus.de> (view parent)
DKIM signature
pass
Download raw message
Pushed, thanks!
Reply to thread Export thread (mbox)