Skip to content

Commit

Permalink
Remove relative ./ for http.Dir() as path could be absolute for log-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhijith Dadaga arkakeerthy committed Oct 27, 2023
1 parent f65bf85 commit c8f3ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ func RegisterHandlers(port int) {
// http.FileServer(http.Dir("./"+*CmdOptions.logDirPtr))))
http.Handle("/plugins/",
http.StripPrefix("/plugins/",
http.FileServer(http.Dir("./"+config.GetPluginsLogDir()))))
http.FileServer(http.Dir(config.GetPluginsLogDir()))))
fmt.Println("Starting server on ", port)
err := http.ListenAndServe(":"+strconv.Itoa(port), nil)
if err != nil {
Expand Down

0 comments on commit c8f3ef1

Please sign in to comment.