Merge pull request #296 from allfro/patch-1

rpc_loots method uses the wrong iteration variable ('n' instead of 'l')
This commit is contained in:
sinn3r 2012-04-04 13:58:18 -07:00
commit 57c22a50fa
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ public
wspace.loots.all(:limit => limit, :offset => offset).each do |l| wspace.loots.all(:limit => limit, :offset => offset).each do |l|
loot = {} loot = {}
loot[:host] = l.host.address if(l.host) loot[:host] = l.host.address if(l.host)
loot[:service] = l.service.name || n.service.port if(n.service) loot[:service] = l.service.name || l.service.port if(l.service)
loot[:ltype] = l.ltype loot[:ltype] = l.ltype
loot[:ctype] = l.content_type loot[:ctype] = l.content_type
loot[:data] = l.data loot[:data] = l.data