BUG修复
This commit is contained in:
@@ -38,8 +38,9 @@ func main() {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
http.Handle(contextPath+"/exec/", websocket.Handler(ExecContainer))
|
http.Handle(contextPath+"/exec/", websocket.Handler(ExecContainer))
|
||||||
http_dir := http.FileServer(http.Dir(*localPath))
|
httpDir := http.FileServer(http.Dir(*localPath))
|
||||||
http.Handle(contextPath+"/", http.StripPrefix("/console/", http_dir))
|
//http.Handle(contextPath+"/", http.StripPrefix("/console/", http_dir))
|
||||||
|
http.Handle(contextPath+"/", http.StripPrefix(contextPath+"/", httpDir))
|
||||||
// 仅index.html
|
// 仅index.html
|
||||||
|
|
||||||
if err := http.ListenAndServe(":"+*port, nil); err != nil {
|
if err := http.ListenAndServe(":"+*port, nil); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user