Show port and protocol when printing service notes, not just name
parent
9955cb5b27
commit
a4f623a955
|
@ -1109,8 +1109,9 @@ class Db
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if (note.service)
|
if (note.service)
|
||||||
name = (note.service.name ? note.service.name : "#{note.service.port}/#{note.service.proto}")
|
msg << " service=#{note.service.name}" if note.service.name
|
||||||
msg << " service=#{name}"
|
msg << " port=#{note.service.port}" if note.service.port
|
||||||
|
msg << " protocol=#{note.service.proto}" if note.service.proto
|
||||||
end
|
end
|
||||||
msg << " type=#{note.ntype} data=#{note.data.inspect}"
|
msg << " type=#{note.ntype} data=#{note.data.inspect}"
|
||||||
print_status(msg)
|
print_status(msg)
|
||||||
|
|
Loading…
Reference in New Issue