mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Story#114552597 - name_in_wire_format uses puny code
This commit is contained in:
parent
e016ec4767
commit
4106492ed3
1 changed files with 1 additions and 1 deletions
|
@ -501,7 +501,7 @@ class Domain < ActiveRecord::Base
|
|||
|
||||
def name_in_wire_format
|
||||
res = ''
|
||||
parts = name.split('.')
|
||||
parts = name_puny.split('.')
|
||||
parts.each do |x|
|
||||
res += format('%02X', x.length) # length of label in hex
|
||||
res += x.each_byte.map { |b| format('%02X', b) }.join # label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue