From 53946e878fd59f31d6f57e977097753dbb281119 Mon Sep 17 00:00:00 2001 From: Anders Pitman Date: Tue, 21 Dec 2021 14:05:14 -0700 Subject: [PATCH] Removed unused tunMan from ui_handler.go --- boringproxy.go | 2 +- ui_handler.go | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/boringproxy.go b/boringproxy.go index f1009c8..9d15fc4 100644 --- a/boringproxy.go +++ b/boringproxy.go @@ -207,7 +207,7 @@ func Listen() { api := NewApi(config, db, auth, tunMan) - webUiHandler := NewWebUiHandler(config, db, api, auth, tunMan) + webUiHandler := NewWebUiHandler(config, db, api, auth) httpClient := &http.Client{ // Don't follow redirects diff --git a/ui_handler.go b/ui_handler.go index 2c4f4c0..f6cc327 100644 --- a/ui_handler.go +++ b/ui_handler.go @@ -24,7 +24,6 @@ type WebUiHandler struct { db *Database api *Api auth *Auth - tunMan *TunnelManager headHtml template.HTML tmpl *template.Template pendingRequests map[string]chan ReqResult @@ -58,13 +57,12 @@ type LoginData struct { Head template.HTML } -func NewWebUiHandler(config *Config, db *Database, api *Api, auth *Auth, tunMan *TunnelManager) *WebUiHandler { +func NewWebUiHandler(config *Config, db *Database, api *Api, auth *Auth) *WebUiHandler { return &WebUiHandler{ config: config, db: db, api: api, auth: auth, - tunMan: tunMan, pendingRequests: make(map[string]chan ReqResult), mutex: &sync.Mutex{}, }