ulygit / asus_rt_ac68u

Configuration and script for Cloudflare DDNS on Asuswrt-Merlin
MIT License
58 stars 24 forks source link

Question - how exactly does the script get the router IP when it's executed automatically? #24

Closed VladDBA closed 1 year ago

VladDBA commented 1 year ago

Hello,

The title pretty much covers the question I have, I see no way within the script to determine the router's WAN IP so I was wondering if there's a wrapper script I need to create, or if the router provides its WAN IP as input when it executes the script.

Thank you.

bengalih commented 1 year ago

Merlin firmware calls this as a custom DNS script. It passes the WAN IP to the script. So can consider the code in the firmware as the "wrapper" as it were.

VladDBA commented 1 year ago

Awesome! Thank you for the quick reply!