Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(server): track IP
Browse files Browse the repository at this point in the history
Co-authored-by: Kenneth Trecy Tobias <19201.tobias.kennethtrecy.c@gmail.com>
  • Loading branch information
Angelo Magtoto and KennethTrecy committed Nov 23, 2022
1 parent ad7448b commit 0b4982a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/vite_dev/create_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default async function(app: ExpressApp) {
const router = createRouter()
// @ts-ignore
router.get("*", async(request: PageRequest, response: Response, next: NextFunction): void => {
Log.trace("controller", `Viewing ${request.url}`)
Log.trace("controller", `Viewing ${request.url} by ${request.clientIp}`)

const { "error": rawError = null } = request.query
// ! There is a possiblity of crashing the server using the query
Expand Down

0 comments on commit 0b4982a

Please sign in to comment.