BUG修复

This commit is contained in:
2024-05-20 15:46:02 +08:00
parent 9af209ca75
commit 6c755b4999
+3 -2
View File
@@ -38,8 +38,9 @@ func main() {
// }
http.Handle(contextPath+"/exec/", websocket.Handler(ExecContainer))
http_dir := http.FileServer(http.Dir(*localPath))
http.Handle(contextPath+"/", http.StripPrefix("/console/", http_dir))
httpDir := http.FileServer(http.Dir(*localPath))
//http.Handle(contextPath+"/", http.StripPrefix("/console/", http_dir))
http.Handle(contextPath+"/", http.StripPrefix(contextPath+"/", httpDir))
// 仅index.html
if err := http.ListenAndServe(":"+*port, nil); err != nil {