Skip to content

Instantly share code, notes, and snippets.

View soruly's full-sized avatar
🐈
にゃー

ソ瑠璃(soruly) soruly

🐈
にゃー
View GitHub Profile
@soruly
soruly / update-up.mjs
Created June 16, 2024 10:36
Update Cloudflare IP address (IPv4 and IPv6)
#!/usr/bin/env node
import * as http2 from "node:http2";
import * as os from "node:os";
const CF_API = "https://api.cloudflare.com/client/v4";
const headers = {
"X-Auth-Email": "[email protected]",
"X-Auth-Key": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"Content-Type": "application/json",