This commit is contained in:
@@ -93,9 +93,11 @@ func main() {
|
||||
http.Error(w, "upstream error", http.StatusBadGateway)
|
||||
}
|
||||
|
||||
r.Handle("/static/*", http.StripPrefix("/static",
|
||||
http.FileServer(http.FS(ui.FS)),
|
||||
))
|
||||
r.Handle("/static/*",
|
||||
http.StripPrefix("/static",
|
||||
http.FileServer(http.FS(ui.StaticFS)),
|
||||
),
|
||||
)
|
||||
|
||||
r.Handle("/hls/*", http.StripPrefix("/hls", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if strings.Contains(r.URL.Path, "..") {
|
||||
|
||||
Reference in New Issue
Block a user