From 4bc7cb17649d160ceb2d01349aa97e87e7b8fc88 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Tue, 12 Jan 2021 14:08:38 +0530 Subject: [PATCH] routes: just proxy everything --- main.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/main.go b/main.go index 070d4a3..c7ef638 100644 --- a/main.go +++ b/main.go @@ -134,14 +134,7 @@ func getBestThumbnail(path string) (newpath string) { } func main() { - http.HandleFunc("/videoplayback", genericHTTPProxy) - http.HandleFunc("/vi/", genericHTTPProxy) - http.HandleFunc("/vi_webp/", genericHTTPProxy) - http.HandleFunc("/a/", genericHTTPProxy) - http.HandleFunc("/ytc/", genericHTTPProxy) - http.HandleFunc("/ggpht/", genericHTTPProxy) - http.HandleFunc("/sb/", genericHTTPProxy) - http.HandleFunc("/api/v3/streams/", genericHTTPProxy) + http.HandleFunc("/", genericHTTPProxy) socket := "socket" + string(os.PathSeparator) + "http-proxy.sock" syscall.Unlink(socket) listener, err := net.Listen("unix", socket)