Merge pull request #91 from internetee/story/114552597-ds-record

Story#114552597 - name_in_wire_format uses puny code
This commit is contained in:
Timo Võhmar 2016-02-29 14:59:27 +02:00
commit 47fd530146

View file

@ -501,7 +501,7 @@ class Domain < ActiveRecord::Base
def name_in_wire_format def name_in_wire_format
res = '' res = ''
parts = name.split('.') parts = name_puny.split('.')
parts.each do |x| parts.each do |x|
res += format('%02X', x.length) # length of label in hex res += format('%02X', x.length) # length of label in hex
res += x.each_byte.map { |b| format('%02X', b) }.join # label res += x.each_byte.map { |b| format('%02X', b) }.join # label