From 64285842fe893e0b484a9f77edca977afbbaac4a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Nov 2020 16:36:04 +0100 Subject: [PATCH] Revert "readme: fix issue tracker link" This reverts commit 30dc7be08e8afa7a33da3a8228377755ae96d34a. This commit contains WIP changes committed by mistake. --- server.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/server.go b/server.go index e910889..fd2d7c8 100644 --- a/server.go +++ b/server.go @@ -15,10 +15,6 @@ import ( "github.com/pires/go-proxyproto/tlvparse" ) -type conn struct { - downstream, upstream net.Conn -} - type Server struct { Listeners map[string]*Listener // indexed by listening address Frontends []*Frontend @@ -28,8 +24,6 @@ type Server struct { ACMEManager *certmagic.ACMEManager ACMEConfig *certmagic.Config - - conns map[*conn]struct{} } func NewServer() *Server { @@ -82,16 +76,10 @@ func (srv *Server) Start() error { return nil } -func (srv *Server) Close() error { - -} - type Listener struct { Address string Server *Server Frontends map[string]*Frontend // indexed by server name - - ln net.Listener } func newListener(srv *Server, addr string) *Listener { @@ -117,8 +105,6 @@ func (ln *Listener) Start() error { } log.Printf("listening on %q", ln.Address) - ln.ln = netLn - go func() { if err := ln.serve(netLn); err != nil { log.Fatalf("listener %q: %v", ln.Address, err) @@ -128,10 +114,6 @@ func (ln *Listener) Start() error { return nil } -func (ln *Listener) Close() error { - return ln.ln.Close() -} - func (ln *Listener) serve(netLn net.Listener) error { for { conn, err := netLn.Accept()