working changes for redeployment
This commit is contained in:
30
routes/ip.js
30
routes/ip.js
@@ -1,31 +1,13 @@
|
||||
const { app } = require("../index.js")
|
||||
|
||||
app.get("/ip", (rreq,rres) => {
|
||||
rres.send(`
|
||||
<style>body { background-color: #000; color: #fff; display: grid; place-items: center;}</style>
|
||||
<pre>
|
||||
▐▀▄ ▄▀▌ ▄▄▄▄▄▄▄
|
||||
▌▒▒▀▄▄▄▄▄▀▒▒▐▄▀▀▒██▒██▒▀▀▄
|
||||
▐▒▒▒▒▀▒▀▒▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄
|
||||
▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▒▒▒▒▒▒▒▒▀▄
|
||||
▀█▒▒▒█▌▒▒█▒▒▐█▒▒▒▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▌
|
||||
▀▌▒▒▒▒▒▒▀▒▀▒▒▒▒▒▒▀▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐ ▄▄
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▌▄█▒█
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▒█▀
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▀
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▌
|
||||
▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
|
||||
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▌
|
||||
▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
|
||||
▐▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▌
|
||||
▀▄▄▀▀▀▀▀▄▄▀▀▀▀▀▀▀▄▄▀▀▀▀▀▄▄▀
|
||||
|
||||
CF-Connecting-IP: ${rreq.get("cf-connecting-ip")}
|
||||
</pre>`)
|
||||
})
|
||||
let jsonResponse = {
|
||||
"IP": rreq.get("cf-connecting-ip") || "you_did",
|
||||
"Country": rreq.get("cf-ipcountry") || "not_connect",
|
||||
"CfRay": rreq.get("cf-ray") || "via_cloudflare"
|
||||
}
|
||||
|
||||
app.get("/iplain", (rreq,rres) => {
|
||||
rres.send(rreq.get("cf-connecting-ip"))
|
||||
rres.send(jsonResponse);
|
||||
})
|
||||
|
||||
module.exports = {app}
|
||||
Reference in New Issue
Block a user