Sha256: 30cf98ed71a26fc51118f1d4e8d53e99d2336c48b43e99530cd5ca2f7ec04840
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true require 'faraday' module CloudFlare module DynamicDNS # Fetch public IP address of the network. use https://ifconfig.so to fetch ip address. class IfConfig # returns ipv4 address of your home internet connection. def execute Faraday.get('http://ifconfig.so').body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudflare-dynamic-dns-0.1.0 | lib/cloud_flare/dynamic_dns/if_config.rb |