routes: just proxy everything

This commit is contained in:
FireMasterK 2021-01-12 14:08:38 +05:30
parent 675ada1905
commit 4bc7cb1764
1 changed files with 1 additions and 8 deletions

View File

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