Skip to content

v1.0.1

Choose a tag to compare

@ableinc ableinc released this 03 Aug 21:39
· 4 commits to main since this release

Intelligent Caching System

  • Local caching of IP addresses in ~/.myip_cache.json
  • 1-hour cache validity - cached IPs are returned instantly if fetched within the last hour
  • Independent caching for IPv4 and IPv6 addresses
  • Cache bypass option with --no-cache flag for fresh lookups
  • Automatic cache updates when fetching new IP addresses

Performance & Reliability

  • 10-second timeout for HTTP requests to prevent hanging
  • IP address validation to ensure returned values are valid
  • Graceful error handling with meaningful error messages
  • Zero external dependencies - uses only Go standard library

Technical Details

  • Uses ipify.org API for IPv4/IPv6 lookups
  • Cache stored as JSON in user's home directory