Skip to content

Commit c97e7ec

Browse files
committed
print out extra OPT data
1 parent 0074767 commit c97e7ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/dnsruby/resource/OPT.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,13 +227,12 @@ def to_s
227227
if @options
228228
@options.each do |opt|
229229
if opt.code == EDNS_SUBNET_OPTION
230-
ret = ret + "CLIENT-SUBNET: #{get_client_subnet(opt)}"
230+
ret = ret + "CLIENT-SUBNET: #{get_client_subnet(opt)}\n"
231231
else
232-
ret = ret + " " + opt.to_s
232+
ret = ret + "OPT=#{opt.code}: #{opt.data}\n"
233233
end
234234
end
235235
end
236-
ret = ret + "\n"
237236
return ret
238237
end
239238

0 commit comments

Comments
 (0)