mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Removed unused tunMan from ui_handler.go
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user