Skip to content

Commit

Permalink
Implemented Crashlogger In Middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
41Baloo committed Apr 14, 2023
1 parent a931e45 commit 0ecfc12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/server/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"goProxy/core/api"
"goProxy/core/domains"
"goProxy/core/firewall"
"goProxy/core/pnc"
"goProxy/core/proxy"
"goProxy/core/utils"
"image"
Expand All @@ -25,6 +26,9 @@ import (
)

func Middleware(writer http.ResponseWriter, request *http.Request) {

defer pnc.PanicHndl()

domainName := request.Host

firewall.Mutex.Lock()
Expand Down
Binary file modified main
Binary file not shown.

0 comments on commit 0ecfc12

Please sign in to comment.