Generate Server Tracking ID

This commit is contained in:
Martin Lensment 2014-06-27 15:59:50 +03:00
parent bb3fc43261
commit 89c67ca637
4 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,7 @@ module Epp::Common
end end
def proxy def proxy
@svTRID = "ccReg-#{'%010d' % rand(10 ** 10)}"
send(params[:command]) send(params[:command])
end end

View file

@ -7,7 +7,7 @@ xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.
end end
xml.trID do xml.trID do
#xml.svTRID 'svTrid'
xml.clTRID params[:clTRID] xml.clTRID params[:clTRID]
xml.svTRID @svTRID
end end
end end

View file

@ -6,7 +6,7 @@ xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.
end end
xml.trID do xml.trID do
xml.clTRID params[:clTRID] xml.clTRID params[:clTRID]
xml.svTRID 'ccReg-0003012027' xml.svTRID @svTRID
end end
end end
end end

View file

@ -8,5 +8,6 @@ xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.
xml.trID do xml.trID do
xml.clTRID params[:clTRID] xml.clTRID params[:clTRID]
xml.svTRID @svTRID
end end
end end