mirror of
https://github.com/LittleChest/Dohna-NS.git
synced 2026-05-06 22:44:50 +08:00
netlify: Get IP from runtime
This commit is contained in:
parent
51e35cc622
commit
f16c3164fe
@ -1,4 +1,4 @@
|
||||
import handler from "../../common.js";
|
||||
export default (request) =>
|
||||
handler(request, Netlify.env.get("DNS"), Netlify.env.get("API"));
|
||||
export default async (request) =>
|
||||
handler(request, Netlify.env.get("DNS"), Netlify.env.get("API"), Netlify.context.ip);
|
||||
export const config = { path: "*" };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user