Skip to content

Commit

Permalink
fix: log requests to stager HTTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Mar 31, 2023
1 parent 58ed35a commit 787344d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/lib/tun/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var (

func ServeFileHTTP(file_path, port string, ctx context.Context, cancel context.CancelFunc) (err error) {
file_handler := func(w http.ResponseWriter, r *http.Request) {
LogInfo("Got request from %s for %s", r.RemoteAddr, r.URL)
http.ServeFile(w, r, file_path)
}
Stager_HTTP_Server = http.Server{
Expand Down

0 comments on commit 787344d

Please sign in to comment.