Files
bailyandClaude Opus 4.6 8054cf8a15 Initial commit: Portable WiFi proxy setup with VLESS+Reality
Complete solution for using MSM8916 portable WiFi as a proxy server
with Xray VLESS+Reality, UPnP auto port mapping, DDNS, WiFi helper,
and watchdog. Includes one-click setup script and apt source fix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-06 02:26:48 +08:00

18 lines
530 B
Bash
Executable File

#!/bin/bash
# Cloudflare DDNS updater
# Fill in your own values below
ZONE_ID="YOUR_ZONE_ID"
RECORD_ID="YOUR_RECORD_ID"
API_TOKEN="YOUR_API_TOKEN"
DOMAIN="wifi.yourdomain.com"
IP=$(curl -s https://api.ipify.org)
if [ -n "$IP" ]; then
curl -s -X PUT "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
--data "{\"type\":\"A\",\"name\":\"$DOMAIN\",\"content\":\"$IP\",\"ttl\":60,\"proxied\":false}"
fi