diff --git a/main.go b/main.go index 8a2301b..7ec32ce 100644 --- a/main.go +++ b/main.go @@ -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 {