Merge branch 'story/114552597-ds-record' into staging

This commit is contained in:
Vladimir Krylov 2016-02-26 15:25:28 +02:00
commit 7070fd7a49

View file

@ -505,7 +505,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