Something went wrong. Try again.
LiquidProxy Lua Edition
Something went wrong. Try again.
123456789101112131415-- dats your ip
---@param req ch-request---@param body string---@param go gofunction---@param socket uv_tcp_t---@return coro-http.alias.response---@return string? bodyreturn {nil, {["datsnotyourip.totally.real"] = function(req, body, go, socket) local resp = ("Your IP: %s\nThe request body: %s\n"):format( socket:getpeername().ip, (not body or body == "" and "none" or body) ) return {code = 200, {"Doing", "your mom lol"}, {"Content-Length", resp:len()}}, respend}}