routes: just proxy everything
This commit is contained in:
parent
675ada1905
commit
4bc7cb1764
1 changed files with 1 additions and 8 deletions
9
main.go
9
main.go
|
@ -134,14 +134,7 @@ func getBestThumbnail(path string) (newpath string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
http.HandleFunc("/videoplayback", genericHTTPProxy)
|
http.HandleFunc("/", 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)
|
|
||||||
socket := "socket" + string(os.PathSeparator) + "http-proxy.sock"
|
socket := "socket" + string(os.PathSeparator) + "http-proxy.sock"
|
||||||
syscall.Unlink(socket)
|
syscall.Unlink(socket)
|
||||||
listener, err := net.Listen("unix", socket)
|
listener, err := net.Listen("unix", socket)
|
||||||
|
|
Loading…
Reference in a new issue