Removed unused tunMan from ui_handler.go

This commit is contained in:
Anders Pitman
2021-12-21 14:05:14 -07:00
parent 811f25ce3e
commit 53946e878f
2 changed files with 2 additions and 4 deletions

View File

@@ -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

View File

@@ -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{},
}