Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addEventListener("fetch", event => {
- event.respondWith(handleRequest(event.request))
- })
- async function handleRequest(e) {
- const connectingIP = e.headers.get("cf-connecting-ip");
- return new Response(`${connectingIP}\n`, {status: 200})
- }
Advertisement
Add Comment
Please, Sign In to add comment