mirror of
https://github.com/cmur2/dyndnsd.git
synced 2025-07-12 07:11:17 +02:00
daemon: break extracting myip down into smaller parts
This commit is contained in:
@ -19,7 +19,7 @@ module Dyndnsd
|
||||
out << "@ IN NS #{@dns}"
|
||||
out << ""
|
||||
zone['hosts'].each do |hostname,ips|
|
||||
(ips.is_a?(Array) ? ips : [ips]).each do |ip|
|
||||
ips.each do |ip|
|
||||
ip = IPAddr.new(ip).native
|
||||
type = ip.ipv6? ? "AAAA" : "A"
|
||||
name = hostname.chomp('.' + @domain)
|
||||
|
Reference in New Issue
Block a user