Shameful bugfix.
This commit is contained in:
parent
088980109d
commit
ff29717bbd
@ -625,13 +625,13 @@ class DNSManager::Storage::Zone
|
|||||||
|
|
||||||
def get_rr(rrid : UInt32) : ResourceRecord?
|
def get_rr(rrid : UInt32) : ResourceRecord?
|
||||||
@resources.each do |rr|
|
@resources.each do |rr|
|
||||||
return rr if rr.rrid = rrid
|
return rr if rr.rrid == rrid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_rr(rr : ResourceRecord)
|
def update_rr(rr : ResourceRecord)
|
||||||
puts "updating rr #{rr.rrid}"
|
puts "updating rr #{rr.rrid}"
|
||||||
@resources.select! { |x| x.rrid == rr.rrid }
|
@resources.select! { |x| x.rrid != rr.rrid }
|
||||||
@resources << rr
|
@resources << rr
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user