From b94d20865d43bc23ae2d53d8ee34a4bab513361d Mon Sep 17 00:00:00 2001 From: Fabricio Date: Sun, 24 Mar 2019 10:47:41 -0300 Subject: [PATCH] move handler path --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3f5748e..3165cfa 100644 --- a/main.go +++ b/main.go @@ -35,12 +35,12 @@ func startCapture(config Config) { handler := NewRecorder(list, NewPlugin(NewProxyHandler(config.TargetURL))) - http.HandleFunc("/", handler) http.HandleFunc(config.DashboardPath, NewDashboardHTMLHandler(config)) http.HandleFunc(config.DashboardConnPath, NewDashboardConnHandler(list)) http.HandleFunc(config.DashboardInfoPath, NewDashboardInfoHandler(list)) http.HandleFunc(config.DashboardClearPath, NewDashboardClearHandler(list)) http.HandleFunc(config.DashboardRetryPath, NewDashboardRetryHandler(list, handler)) + http.HandleFunc("/", handler) captureHost := fmt.Sprintf("http://localhost:%s", config.ProxyPort)